From ac576c05905b55a5059dab672c1882f01fc074d0 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Wed, 24 May 2017 21:42:48 +0100 Subject: Kind of done my File Explorer... IT'S NOT FINISHED!!!!!!!! --- TimeHACK.Main/Program.cs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'TimeHACK.Main/Program.cs') 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(); /// /// 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 ""; + } + } } } -- cgit v1.2.3 From 0e904f57298c997d1a36569228acad094d8834a5 Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 25 May 2017 13:10:38 -0400 Subject: oops made mistake --- TimeHACK.Main/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TimeHACK.Main/Program.cs') diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index 888c2f6..90e5acd 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -32,7 +32,7 @@ namespace TimeHACK [STAThread] static void Main(string[] args) { - if (args.Contains("-nd")) System.Diagnostics.Debugger.Launch(); + if (!args.Contains("-nd")) System.Diagnostics.Debugger.Launch(); if (nightly == true) { try -- cgit v1.2.3 From 9ee1762d7261de1e7c98862fc91abd52deb6f8b9 Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 25 May 2017 13:48:09 -0400 Subject: Update Program.cs --- TimeHACK.Main/Program.cs | 1 - 1 file changed, 1 deletion(-) (limited to 'TimeHACK.Main/Program.cs') diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index 90e5acd..97a9ca2 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -32,7 +32,6 @@ namespace TimeHACK [STAThread] static void Main(string[] args) { - if (!args.Contains("-nd")) System.Diagnostics.Debugger.Launch(); if (nightly == true) { try -- cgit v1.2.3