fixed crashing apps

This commit is contained in:
lempamo 2017-04-29 12:10:34 -04:00
parent 18b10c1d62
commit 7f780587c4
26 changed files with 72 additions and 14 deletions

Binary file not shown.

View file

@ -178,7 +178,7 @@ private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
{
if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", (Image)resources.GetObject("InternetExplorerToolStripMenuItem.Image"), true, true);
ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
@ -197,7 +197,7 @@ private void desktopicons_Click(object sender, EventArgs e)
if (objListViewItem.Text == "Internet Explorer")
{
if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", (Image)resources.GetObject("InternetExplorerToolStripMenuItem.Image"), true, true);
ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
@ -236,7 +236,7 @@ private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassicWordPad wp = new WinClassicWordPad();
WinClassic app = wm.startWin95(wp, "Wordpad", null, true, true);
WinClassic app = wm.startWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true);
app.BringToFront();
startmenu.Hide();
}

View file

@ -21,7 +21,7 @@ public Win95Notepad()
item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
item.BackColor = Color.Silver;
item.BackgroundImage = Properties.Resources.sliversilver;
item.BackgroundImageLayout = ImageLayout.None;
item.BackgroundImageLayout = ImageLayout.Center;
item.DisplayStyle = ToolStripItemDisplayStyle.Text;
}
}

View file

@ -30,7 +30,7 @@ public WinClassicWordPad()
item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
item.BackColor = Color.Silver;
item.BackgroundImage = Properties.Resources.sliversilver;
item.BackgroundImageLayout = ImageLayout.None;
item.BackgroundImageLayout = ImageLayout.Center;
item.DisplayStyle = ToolStripItemDisplayStyle.Text;
}

View file

@ -293,6 +293,16 @@ internal static System.Drawing.Bitmap Win95Error {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Win95IconIE4 {
get {
object obj = ResourceManager.GetObject("Win95IconIE4", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@ -303,6 +313,26 @@ internal static System.Drawing.Bitmap Win95IconNotepad {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Win95IconNotepad_2 {
get {
object obj = ResourceManager.GetObject("Win95IconNotepad_2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Win95IconWordpad {
get {
object obj = ResourceManager.GetObject("Win95IconWordpad", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -309,4 +309,31 @@
<data name="WinClassicWordpad" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\WinClassicWordpad.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Win95IconIE4" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAACVSURBVDhPlZELEsQgDEI9em7uBhVN2HTtvhmqotBf+4/e
s36ih6mIrgcmARX2CdaJE/brnn+LJZhvYFo3czeFp3/W0U9UYWgjfiq4honsr5I6/EZewDDG8sBNMwgY
iAUvQMG5+7VA9vcTBENKzPCB4T284ikYTFNKao1SH3IBwHwdqIroJ7hJxvxJGf+Hy2RJLLrR2gerBkDv
4H+zGwAAAABJRU5ErkJggg==
</value>
</data>
<data name="Win95IconNotepad_2" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vQAADr0BR/uQrQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAACFSURBVDhPpZNB
DsAgCAR9uk/zZ1S0i6CoDTUZQ5EdTk1EtFAPX0dkFoU0aivnTOnFrZVkCZvGjjpXSuki02c7F9g0gzdP
YD7mIDMGW3gV6KEdPOMJjOmECltBYLsIxHJjCg9BYDufIejXFYQ17Q1LwG7YIyTA4Tok0PwStB/LE0Dy
BSJKDySVfIiSNKD1AAAAAElFTkSuQmCC
</value>
</data>
<data name="Win95IconWordpad" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vQAADr0BR/uQrQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAACMSURBVDhPnZAB
DsAgCAN9Ok/zZ4yiEINsMkkKRNezWWNmlZSM84wabVwyEX3ODNLCZXWiyUrsgEr13h2gZlmvAGZGKQAX
VRlAzfcJIAB+/gMiM5smIMbMBLO8uUMqCcxsOzww4/AIiGZ7eR4OQBYZ2uIGswOyWj72ArQMyOoVsMY+
aQNok1HVambm9gBAYeI/oBSQZwAAAABJRU5ErkJggg==
</value>
</data>
</root>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

After

Width:  |  Height:  |  Size: 286 B

View file

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>UQjZ3Gfvu3tMhC+d45c8WvCsn6EdObB6G1RAnCcgpgs=</dsig:DigestValue>
<dsig:DigestValue>NQTTPlxuFMrJVeSnR5t5M2K8zzWe/bw5YOHMNAJkiHc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -56,14 +56,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6236672">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6253568">
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>CZVZ6e1uQishA7C+soeoEECq35ekniZWzNaXTtNGSxg=</dsig:DigestValue>
<dsig:DigestValue>QwYlduEQxBXK0sy4D6me10tiFd2GZ0ehgLK09v8NbBw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>UQjZ3Gfvu3tMhC+d45c8WvCsn6EdObB6G1RAnCcgpgs=</dsig:DigestValue>
<dsig:DigestValue>NQTTPlxuFMrJVeSnR5t5M2K8zzWe/bw5YOHMNAJkiHc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -56,14 +56,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6236672">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6253568">
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>CZVZ6e1uQishA7C+soeoEECq35ekniZWzNaXTtNGSxg=</dsig:DigestValue>
<dsig:DigestValue>QwYlduEQxBXK0sy4D6me10tiFd2GZ0ehgLK09v8NbBw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -39,3 +39,4 @@ C:\Users\Liam\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.
C:\Users\Liam\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win95.Win95Apps.WinClassicDownloader.resources
C:\Users\Liam\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win95.Win95Apps.Win95Notepad.resources
C:\Users\Liam\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win95.Win95Apps.WinClassicHWCV.resources
C:\Users\Liam\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win95.Win95Apps.WinClassicWordPad.resources

View file

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>UQjZ3Gfvu3tMhC+d45c8WvCsn6EdObB6G1RAnCcgpgs=</dsig:DigestValue>
<dsig:DigestValue>NQTTPlxuFMrJVeSnR5t5M2K8zzWe/bw5YOHMNAJkiHc=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View file

@ -56,14 +56,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6236672">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6253568">
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>CZVZ6e1uQishA7C+soeoEECq35ekniZWzNaXTtNGSxg=</dsig:DigestValue>
<dsig:DigestValue>QwYlduEQxBXK0sy4D6me10tiFd2GZ0ehgLK09v8NbBw=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>