From 7e21f70d1de59736f0ade93bef75e3c34fdacd6e Mon Sep 17 00:00:00 2001 From: Dylan Bickerstaff Date: Fri, 22 Nov 2019 17:01:15 -0500 Subject: [PATCH] Add icons? --- SuperGrate/Main.Designer.cs | 31 +++++++++--- SuperGrate/Main.cs | 4 ++ SuperGrate/Main.resx | 3 ++ SuperGrate/Properties/Resources.Designer.cs | 50 ++++++++++++++++++++ SuperGrate/Properties/Resources.resx | 15 ++++++ SuperGrate/Resources/computer.ico | Bin 0 -> 1150 bytes SuperGrate/Resources/delete.ico | Bin 0 -> 1150 bytes SuperGrate/Resources/go.ico | Bin 0 -> 1150 bytes SuperGrate/Resources/usercheck.ico | Bin 0 -> 1150 bytes SuperGrate/Resources/users.ico | Bin 0 -> 1150 bytes SuperGrate/SuperGrate.csproj | 16 ++++++- 11 files changed, 111 insertions(+), 8 deletions(-) create mode 100644 SuperGrate/Resources/computer.ico create mode 100644 SuperGrate/Resources/delete.ico create mode 100644 SuperGrate/Resources/go.ico create mode 100644 SuperGrate/Resources/usercheck.ico create mode 100644 SuperGrate/Resources/users.ico diff --git a/SuperGrate/Main.Designer.cs b/SuperGrate/Main.Designer.cs index 06392be..836a4e0 100644 --- a/SuperGrate/Main.Designer.cs +++ b/SuperGrate/Main.Designer.cs @@ -54,8 +54,10 @@ private void InitializeComponent() this.tbDestinationComputer = new System.Windows.Forms.TextBox(); this.MainMenu = new System.Windows.Forms.MainMenu(this.components); this.miFile = new System.Windows.Forms.MenuItem(); - this.miSaveLog = new System.Windows.Forms.MenuItem(); + this.miNewInstance = new System.Windows.Forms.MenuItem(); this.miSpacer0 = new System.Windows.Forms.MenuItem(); + this.miSaveLog = new System.Windows.Forms.MenuItem(); + this.menuItem2 = new System.Windows.Forms.MenuItem(); this.miExitButton = new System.Windows.Forms.MenuItem(); this.miSetup = new System.Windows.Forms.MenuItem(); this.miHelp = new System.Windows.Forms.MenuItem(); @@ -437,26 +439,39 @@ private void InitializeComponent() // this.miFile.Index = 0; this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.miSaveLog, + this.miNewInstance, this.miSpacer0, + this.miSaveLog, + this.menuItem2, this.miExitButton}); this.miFile.Text = "&File"; // + // miNewInstance + // + this.miNewInstance.Index = 0; + this.miNewInstance.Text = "New Instance"; + this.miNewInstance.Click += new System.EventHandler(this.miNewInstance_Click); + // + // miSpacer0 + // + this.miSpacer0.Index = 1; + this.miSpacer0.Text = "-"; + // // miSaveLog // - this.miSaveLog.Index = 0; + this.miSaveLog.Index = 2; this.miSaveLog.Shortcut = System.Windows.Forms.Shortcut.CtrlS; this.miSaveLog.Text = "Save Log..."; this.miSaveLog.Click += new System.EventHandler(this.MiSaveLog_Click); // - // miSpacer0 + // menuItem2 // - this.miSpacer0.Index = 1; - this.miSpacer0.Text = "-"; + this.menuItem2.Index = 3; + this.menuItem2.Text = "-"; // // miExitButton // - this.miExitButton.Index = 2; + this.miExitButton.Index = 4; this.miExitButton.Shortcut = System.Windows.Forms.Shortcut.AltF4; this.miExitButton.Text = "Exit"; this.miExitButton.Click += new System.EventHandler(this.MiExitButton_Click); @@ -593,6 +608,8 @@ private void InitializeComponent() private System.Windows.Forms.MenuItem miSpacer1; private System.Windows.Forms.MenuItem miHelpButton; private System.Windows.Forms.MenuItem miSpacer2; + private System.Windows.Forms.MenuItem miNewInstance; + private System.Windows.Forms.MenuItem menuItem2; } } diff --git a/SuperGrate/Main.cs b/SuperGrate/Main.cs index 41390f8..23a355d 100644 --- a/SuperGrate/Main.cs +++ b/SuperGrate/Main.cs @@ -375,6 +375,10 @@ private void miHelpButton_Click(object sender, EventArgs e) Cursor = Cursors.Help; } } + private void miNewInstance_Click(object sender, EventArgs e) + { + Process.Start(Application.ExecutablePath); + } } public enum ListSources { diff --git a/SuperGrate/Main.resx b/SuperGrate/Main.resx index 904886a..aab6b55 100644 --- a/SuperGrate/Main.resx +++ b/SuperGrate/Main.resx @@ -120,6 +120,9 @@ 258, 17 + + 258, 17 + This box is a list of the user profiles on either the source computer or the store. To tell the difference, look to the left. (You can multi-select by holding down the mouse, or by holding shift / ctrl key on the keyboard. To un-select a profile, hold down the crtl key and click.) diff --git a/SuperGrate/Properties/Resources.Designer.cs b/SuperGrate/Properties/Resources.Designer.cs index 2d0321a..16dd7db 100644 --- a/SuperGrate/Properties/Resources.Designer.cs +++ b/SuperGrate/Properties/Resources.Designer.cs @@ -70,6 +70,36 @@ internal static System.Drawing.Bitmap banner { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon computer { + get { + object obj = ResourceManager.GetObject("computer", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon delete { + get { + object obj = ResourceManager.GetObject("delete", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon go { + get { + object obj = ResourceManager.GetObject("go", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). /// @@ -90,6 +120,26 @@ internal static byte[] SuperGrateProfileDelete { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon usercheck { + get { + object obj = ResourceManager.GetObject("usercheck", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon users { + get { + object obj = ResourceManager.GetObject("users", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/SuperGrate/Properties/Resources.resx b/SuperGrate/Properties/Resources.resx index 1e17c99..9c2a7e9 100644 --- a/SuperGrate/Properties/Resources.resx +++ b/SuperGrate/Properties/Resources.resx @@ -121,12 +121,27 @@ ..\images\banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\computer.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\delete.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\go.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Images\supergrate.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Utilities\SuperGrateProfileDelete.exe;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\usercheck.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\users.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Images\working.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/SuperGrate/Resources/computer.ico b/SuperGrate/Resources/computer.ico new file mode 100644 index 0000000000000000000000000000000000000000..ad72bdf3756503cd2a9f9829f3d271f56d227a99 GIT binary patch literal 1150 zcmc&y&1(}u9GzgH9$FF`Ox$uHR-k_+0EB(i;A?N(2IgzLF6G;_`vgI#E-x>`=kxug%l1?%l@7+W z+wE{VonI-pL(663P$*PY6a`cVE28-9T`Gkn)nm24O(YPD#}NnwFf}y=zuyn9*Ne%? z$yzOrU@-WHUnrHpQ7j=}EJBiHtftdQQ7usvu}1H+n$2>EnGDy^@{8p%f}s#z>-7*0 zHe$S?0nbe)xH~P7j5=(Xbogi@kdN=<8WR%}sMS9+GlLSl2kqxt%n(|dF=D6(YhK%J z#M(^w&}GI>-$`tpH-Me*@p#}^@>I!pD{Se6z3ah!h?gwb z>hD42YAZjVdCvT|_Vw}%D5}ae<2{`a&b1-)(g9B+f&bQZuHoxA1KD;BpKMlSB#C>T zOeSAYfFf0S6opSg=q}SlaH~rnt4rS_4>E2_e{7ptpCAiyC52MjiXp~`iip~s?yhGl zDFkn<2u`?}Vdj44+!-!Vt&dAF zII&e49@@5nbMeqBWCsE3!G+ z(S|L&${Mau%e`)JM*ju($KTkp#)LV2HOJLay#p6_Ko|pY2xN6& dWq^-;7pHb*ZY8U~NF3fs7)RFSI!0t*KLHU^&7S}O literal 0 HcmV?d00001 diff --git a/SuperGrate/Resources/go.ico b/SuperGrate/Resources/go.ico new file mode 100644 index 0000000000000000000000000000000000000000..d491f68e0402c4f1ee8758f2bdfaad228cc6e5d7 GIT binary patch literal 1150 zcmc(dL2kk@5JeqPi6y8NrA46$At5*kB|uSIwGzkR3cUp<;Q*c;2e8DFg%4zj#jg#k z2--lp=vZ$ww)DO?!F6E&BA`8HVJ?tQweoZ-th z`l6)+YE{YzH zkpW_L8L9AeN?su&lOedejFIT+5%miGSPqb>a&i&soWg=@_hYuq{gwWbD&}HhQPwGGBY^70f-{efdBvi literal 0 HcmV?d00001 diff --git a/SuperGrate/Resources/usercheck.ico b/SuperGrate/Resources/usercheck.ico new file mode 100644 index 0000000000000000000000000000000000000000..7bc8cf47afe471e5250631d62bd9ca70214860d4 GIT binary patch literal 1150 zcmb7DO-~b16di(z+b)d85D?^}6!~bSG$j=yQdA^}Pzsblsi*{35EWWz!Ag}7AwFbE zOFs}<7^6fG5h4hpMI+F}x;7^84~C_?oe)v)`Gq8|SK(#=WN89Z{H!t9+=EZ#kbMOGg5l=O~Z4Xn(F&tDec zny|n%egPdLmFV(S;RW?C-K)R?t3Zfq@4W_*f781r8mH~UCaiyajc)RC1gqijnK0a6 zj_|`PSf{yG17@sxD)GTrB}nH=+%sl6VdLwCx^6dWtlhXeY{tY`oe&x@;!}7Y?}BD* zkY~tSi;&0Qlynly**=+Rq%YFyd5MdI&v3To=H~36!7@Kkk9xZom#n>5qVKa2Ft$k= ziI1>@GKKp<&p*nNWI66bk+kImWcd?tzP1s~ z*4rp9DZ??H4!Mmva7;bG$n!8-hbE(*q+gNFR#~NJ#;KnspGQ*%}f?3-|-LsZT3HF1uRE-oGArj%eG9PxJ3<7&~4rlK{xx&-gKuk ZRxXR)a(a&^thhK1Zwb_lZNk@N%QqW`SOx$9 literal 0 HcmV?d00001 diff --git a/SuperGrate/Resources/users.ico b/SuperGrate/Resources/users.ico new file mode 100644 index 0000000000000000000000000000000000000000..77fb7fb109b23175d0d3d6c0f92741b6e00f9e3a GIT binary patch literal 1150 zcmc&zOHUJF6di(zTUM@FxNylrW1Pj+9*x}eK__T@Y!p?9`PnK2xLo^BKeXPijW!L-R#`U~n;}6wvQk=p7xtJe*YDm(p|l0&;3ueOw@_~Ei}9RP?_ovs z93Hk$;$EE%x68U1{``DMTp=#6r3WTo4AUE5VOfqt-si^6B9TDlj3ioZ%c$1QBd=); z0`V(kXJ-q}>t(YMXuTTi zd%>*0cvk-i-R_-a|BXW|r!WRk-t9(iu^8Doxx7BfrFxLfhM8K1MXhZLos%o*n%RKd zGN0i2{Nl>kqbdc2C6y>FEJQ&;0S`8%<##f_Ku%_O?tO=PPZV`CWZnsXoacl>VHN>L zfK%}Kh4-KGkh($)L5%n{6P*6hJbUJIN%xoi_Z6Tha$k - + + + + + + + + + + + + + + +