aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/Program.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-05-24 21:46:33 +0100
committerGitHub <[email protected]>2017-05-24 21:46:33 +0100
commit5648792fa6d1e0c51a2720aab091524d2a6ebf8d (patch)
treea2053e6184289ec00133dc075c3a32fdd4f0fe01 /TimeHACK.Main/Program.cs
parent5bd41f103e823773318e647a1bf66daae970c7d2 (diff)
parentac576c05905b55a5059dab672c1882f01fc074d0 (diff)
downloadhistacom2-5648792fa6d1e0c51a2720aab091524d2a6ebf8d.tar.gz
histacom2-5648792fa6d1e0c51a2720aab091524d2a6ebf8d.tar.bz2
histacom2-5648792fa6d1e0c51a2720aab091524d2a6ebf8d.zip
Merge pull request #76 from Alex-TIMEHACK/master
NOT FINISHED File Explorer!
Diffstat (limited to 'TimeHACK.Main/Program.cs')
-rw-r--r--TimeHACK.Main/Program.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs
index 1b89e53..a7d4d31 100644
--- a/TimeHACK.Main/Program.cs
+++ b/TimeHACK.Main/Program.cs
@@ -10,7 +10,8 @@ using Newtonsoft.Json;
using TimeHACK.OS;
using TimeHACK.OS.Win95;
using TimeHACK.OS.Win95.Win95Apps;
-
+using TimeHACK.Engine;
+using TimeHACK.Engine.Template;
namespace TimeHACK
{
@@ -21,6 +22,8 @@ namespace TimeHACK
internal static TitleScreen title = null;
public static string AddressBookSelectedFolderName;
public static AddressBookContact AddressBookSelectedContact;
+ public static string WindowsExplorerReturnPath;
+ static WindowManager wm = new WindowManager();
/// <summary>
/// The main entry point for the application.
@@ -72,5 +75,24 @@ namespace TimeHACK
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(title = new TitleScreen());
}
+
+ public static String OpenFileExplorerAsDialogAndReturnGivenPath()
+ {
+ WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
+ WinClassic app = wm.startWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true, true);
+ TitleScreen.frm95.AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
+
+ TitleScreen.frm95.nonimportantapps.Add(app);
+ TitleScreen.frm95.nonimportantapps[TitleScreen.frm95.nonimportantapps.Count - 1].BringToFront();
+ TitleScreen.frm95.nonimportantapps[TitleScreen.frm95.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(TitleScreen.frm95.NonImportantApp_Closing);
+
+ app.BringToFront();
+ try
+ {
+ return WindowsExplorerReturnPath;
+ } catch {
+ return "";
+ }
+ }
}
}