diff options
Diffstat (limited to 'TimeHACK.Main')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 22 | ||||
| -rw-r--r-- | TimeHACK.Main/Properties/Resources.Designer.cs | 20 | ||||
| -rw-r--r-- | TimeHACK.Main/Properties/Resources.resx | 6 | ||||
| -rw-r--r-- | TimeHACK.Main/Resources/WinClassic/WinClassicNotepadBig.png | bin | 0 -> 255 bytes | |||
| -rw-r--r-- | TimeHACK.Main/Resources/WinClassic/WinClassicRegedit.png | bin | 0 -> 291 bytes | |||
| -rw-r--r-- | TimeHACK.Main/TimeHACK.Main.csproj | 2 |
6 files changed, 47 insertions, 3 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 5fc923d..c27f6a4 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -66,6 +66,8 @@ namespace TimeHACK.OS.Win95.Win95Apps mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicSetup); mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicNotepad); mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicCalcBig); + mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicNotepadBig); + mainView.LargeImageList.Images.Add(Properties.Resources.WinClassicRegedit); program.BringToFront(); @@ -157,8 +159,13 @@ namespace TimeHACK.OS.Win95.Win95Apps } else return; } + FileSystemFolderInfo fsfi = JsonConvert.DeserializeObject<FileSystemFolderInfo>(File.ReadAllText(Path.Combine(CurrentDirectory, "_data.info"))); + foreach(var item in fsfi.Files) + { + if (item.Name == Path.GetFileName(str)) { itm.ImageIndex = item.FileIcon; break; } + } - switch (new FileInfo(str).Extension) + /*switch (new FileInfo(str).Extension) { case ".exe": string contents; @@ -187,7 +194,7 @@ namespace TimeHACK.OS.Win95.Win95Apps default: itm.ImageIndex = 8; break; - } + }*/ } } catch (Exception ex) { //wm.StartInfobox95("Exploring - C:", "Error with the file explorer \n" + ex.Message, Properties.Resources.Win95Info); add illegal operation dialog here later @@ -271,6 +278,15 @@ namespace TimeHACK.OS.Win95.Win95Apps Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); break; + case "notepad": + WinClassic appNP = wm.StartWin95(new WinClassicNotepad(), "Notepad", Properties.Resources.Win95IconNotepad_2, true, true); + Program.AddTaskbarItem(appNP, appNP.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad_2); + + Program.nonimportantapps.Add(appNP); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); + Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); + + break; case "wordpad": WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.WinClassicWordpad, true, true); Program.AddTaskbarItem(appWP, appWP.Tag.ToString(), "Wordpad", Properties.Resources.WinClassicWordpad); @@ -608,7 +624,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { if (mainView.FocusedItem.Tag == null) { // If it isn't a file - GoToDir(Path.Combine(CurrentDirectory, mainView.FocusedItem.ImageKey.ToString())); + GoToDir(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text)); } else { // If it is a file diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index 74a012e..d69258f 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -1294,6 +1294,16 @@ namespace TimeHACK.Properties { /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> + internal static System.Drawing.Bitmap WinClassicNotepadBig { + get { + object obj = ResourceManager.GetObject("WinClassicNotepadBig", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> internal static System.Drawing.Bitmap WinClassicOpenFolderSmall { get { object obj = ResourceManager.GetObject("WinClassicOpenFolderSmall", resourceCulture); @@ -1354,6 +1364,16 @@ namespace TimeHACK.Properties { /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> + internal static System.Drawing.Bitmap WinClassicRegedit { + get { + object obj = ResourceManager.GetObject("WinClassicRegedit", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> internal static System.Drawing.Bitmap WinClassicRun { get { object obj = ResourceManager.GetObject("WinClassicRun", resourceCulture); diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index f6182d6..d40c04e 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -699,4 +699,10 @@ <data name="WinClassicCalcBig" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\WinClassic\WinClassicCalcBig.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="WinClassicNotepadBig" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\WinClassic\WinClassicNotepadBig.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="WinClassicRegedit" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\WinClassic\WinClassicRegedit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> </root>
\ No newline at end of file diff --git a/TimeHACK.Main/Resources/WinClassic/WinClassicNotepadBig.png b/TimeHACK.Main/Resources/WinClassic/WinClassicNotepadBig.png Binary files differnew file mode 100644 index 0000000..394fce2 --- /dev/null +++ b/TimeHACK.Main/Resources/WinClassic/WinClassicNotepadBig.png diff --git a/TimeHACK.Main/Resources/WinClassic/WinClassicRegedit.png b/TimeHACK.Main/Resources/WinClassic/WinClassicRegedit.png Binary files differnew file mode 100644 index 0000000..045e4ec --- /dev/null +++ b/TimeHACK.Main/Resources/WinClassic/WinClassicRegedit.png diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index 9d063c1..d7d10b4 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -622,11 +622,13 @@ <None Include="Resources\WinClassic\WinClassicNotepad.png" /> <None Include="Resources\WinClassic\WinClassicNew.png" /> <None Include="Resources\WinClassic\WinClassicOpenFolderSmall.png" /> + <None Include="Resources\WinClassic\WinClassicNotepadBig.png" /> <Content Include="Resources\WinClassic\WinClassicOutlook.png" /> <None Include="Resources\WinClassic\WinClassicPaste.png" /> <Content Include="Resources\WinClassic\WinClassicProgramItem.png" /> <Content Include="Resources\WinClassic\WinClassicPrograms.png" /> <Content Include="Resources\WinClassic\WinClassicRecycle.png" /> + <None Include="Resources\WinClassic\WinClassicRegedit.png" /> <Content Include="Resources\WinClassic\WinClassicRun.png" /> <Content Include="Resources\WinClassic\WinClassicSettings.png" /> <None Include="Resources\WinClassic\WinClassicSetup.png" /> |
