This commit is contained in:
Ray 2022-12-24 03:24:31 +00:00
parent e98111bf04
commit cf6a45b637
3 changed files with 31 additions and 39 deletions

14
MainForm.Designer.cs generated
View File

@ -97,6 +97,7 @@ namespace FizzyLauncher
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.treeView1 = new RyzStudio.Windows.Forms.BookmarkTreeView(); this.treeView1 = new RyzStudio.Windows.Forms.BookmarkTreeView();
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.rootContextMenu.SuspendLayout(); this.rootContextMenu.SuspendLayout();
this.folderContextMenu.SuspendLayout(); this.folderContextMenu.SuspendLayout();
@ -537,7 +538,8 @@ namespace FizzyLauncher
this.toolStripSeparator3, this.toolStripSeparator3,
this.toolStripButton3, this.toolStripButton3,
this.toolStripSeparator4, this.toolStripSeparator4,
this.toolStripButton4}); this.toolStripButton4,
this.toolStripButton5});
this.toolStrip1.Location = new System.Drawing.Point(0, 24); this.toolStrip1.Location = new System.Drawing.Point(0, 24);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(300, 25); this.toolStrip1.Size = new System.Drawing.Size(300, 25);
@ -604,6 +606,15 @@ namespace FizzyLauncher
this.treeView1.Size = new System.Drawing.Size(300, 531); this.treeView1.Size = new System.Drawing.Size(300, 531);
this.treeView1.TabIndex = 5; this.treeView1.TabIndex = 5;
// //
// toolStripButton5
//
this.toolStripButton5.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton5.Image")));
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton5.Name = "toolStripButton5";
this.toolStripButton5.Size = new System.Drawing.Size(23, 22);
this.toolStripButton5.Text = "toolStripButton5";
//
// MainForm // MainForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -696,6 +707,7 @@ namespace FizzyLauncher
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripButton toolStripButton4; private System.Windows.Forms.ToolStripButton toolStripButton4;
private RyzStudio.Windows.Forms.BookmarkTreeView treeView1; private RyzStudio.Windows.Forms.BookmarkTreeView treeView1;
private System.Windows.Forms.ToolStripButton toolStripButton5;
} }
} }

View File

@ -2,6 +2,7 @@
using bzit.bomg.Models; using bzit.bomg.Models;
using FizzyLauncher.Models; using FizzyLauncher.Models;
using Newtonsoft.Json; using Newtonsoft.Json;
using RyzStudio.Drawing;
using RyzStudio.Windows.Forms; using RyzStudio.Windows.Forms;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -93,6 +94,9 @@ namespace FizzyLauncher
{ {
newToolStripMenuItem_Click(null, null); newToolStripMenuItem_Click(null, null);
} }
/// todo: clean-up
toolStripButton5.Image = SimpleShapeGenerator.Circle(16, 1.6F, Color.Black);
} }
protected async override void OnClosing(CancelEventArgs e) protected async override void OnClosing(CancelEventArgs e)
@ -157,54 +161,21 @@ namespace FizzyLauncher
case AppMode.Clear: case AppMode.Clear:
UIControl.SetText(this, AppResource.app_name); UIControl.SetText(this, AppResource.app_name);
UIControl.SetEnable(closeToolStripMenuItem, false); UIControl.SetEnable(false, closeToolStripMenuItem, saveToolStripMenuItem, saveAsToolStripMenuItem, findToolStripMenuItem, toolStripMenuItem9, expandAllToolStripMenuItem, collapseAllToolStripMenuItem);
UIControl.SetEnable(false, toolStripButton3, toolStripButton4);
UIControl.SetEnable(saveToolStripMenuItem, false);
UIControl.SetEnable(toolStripButton3, false);
UIControl.SetEnable(saveAsToolStripMenuItem, false);
UIControl.SetEnable(findToolStripMenuItem, false);
UIControl.SetEnable(toolStripButton4, false);
UIControl.SetEnable(toolStripMenuItem9, false);
UIControl.SetEnable(expandAllToolStripMenuItem, false);
UIControl.SetEnable(collapseAllToolStripMenuItem, false);
break; break;
case AppMode.Open: case AppMode.Open:
UIControl.SetEnable(closeToolStripMenuItem, true); UIControl.SetEnable(true, closeToolStripMenuItem, saveToolStripMenuItem, saveAsToolStripMenuItem, findToolStripMenuItem, toolStripMenuItem9, expandAllToolStripMenuItem, collapseAllToolStripMenuItem);
UIControl.SetEnable(true, toolStripButton3, toolStripButton4);
UIControl.SetEnable(saveToolStripMenuItem, true);
UIControl.SetEnable(toolStripButton3, true);
UIControl.SetEnable(saveAsToolStripMenuItem, true);
UIControl.SetEnable(findToolStripMenuItem, true);
UIControl.SetEnable(toolStripButton4, true);
UIControl.SetEnable(toolStripMenuItem9, true);
UIControl.SetEnable(expandAllToolStripMenuItem, true);
UIControl.SetEnable(collapseAllToolStripMenuItem, true);
break; break;
case AppMode.New: case AppMode.New:
UIControl.SetText(this, AppResource.app_name); UIControl.SetText(this, AppResource.app_name);
UIControl.SetEnable(closeToolStripMenuItem, true); UIControl.SetEnable(true, closeToolStripMenuItem, saveAsToolStripMenuItem, findToolStripMenuItem, toolStripMenuItem9, expandAllToolStripMenuItem, collapseAllToolStripMenuItem);
UIControl.SetEnable(saveToolStripMenuItem, false); UIControl.SetEnable(saveToolStripMenuItem, false);
UIControl.SetEnable(toolStripButton3, false); UIControl.SetEnable(toolStripButton3, false);
UIControl.SetEnable(saveAsToolStripMenuItem, true);
UIControl.SetEnable(findToolStripMenuItem, true);
UIControl.SetEnable(toolStripButton4, true); UIControl.SetEnable(toolStripButton4, true);
UIControl.SetEnable(toolStripMenuItem9, true);
UIControl.SetEnable(expandAllToolStripMenuItem, true);
UIControl.SetEnable(collapseAllToolStripMenuItem, true);
break; break;
default: break; default: break;
} }

View File

@ -79,6 +79,15 @@
<value>1290, 17</value> <value>1290, 17</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="toolStripButton5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACRSURBVDhPY/j27dt/SjDYACcnJ7IwigEf3n8kCZNswPNb
J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj
CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN
AAAAAElFTkSuQmCC
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
AAABAAQAMDAAAAEAIACoJQAARgAAACAgAAABACAAqBAAAO4lAAAYGAAAAQAgAIgJAACWNgAAEBAAAAEA AAABAAQAMDAAAAEAIACoJQAARgAAACAgAAABACAAqBAAAO4lAAAYGAAAAQAgAIgJAACWNgAAEBAAAAEA