diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs
index 55c8220..4f546ba 100644
--- a/MainForm.Designer.cs
+++ b/MainForm.Designer.cs
@@ -97,6 +97,7 @@ namespace FizzyLauncher
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
this.treeView1 = new RyzStudio.Windows.Forms.BookmarkTreeView();
+ this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
this.menuStrip1.SuspendLayout();
this.rootContextMenu.SuspendLayout();
this.folderContextMenu.SuspendLayout();
@@ -537,7 +538,8 @@ namespace FizzyLauncher
this.toolStripSeparator3,
this.toolStripButton3,
this.toolStripSeparator4,
- this.toolStripButton4});
+ this.toolStripButton4,
+ this.toolStripButton5});
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
this.toolStrip1.Name = "toolStrip1";
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.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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -696,6 +707,7 @@ namespace FizzyLauncher
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripButton toolStripButton4;
private RyzStudio.Windows.Forms.BookmarkTreeView treeView1;
+ private System.Windows.Forms.ToolStripButton toolStripButton5;
}
}
diff --git a/MainForm.cs b/MainForm.cs
index ecff841..3869a40 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -2,6 +2,7 @@
using bzit.bomg.Models;
using FizzyLauncher.Models;
using Newtonsoft.Json;
+using RyzStudio.Drawing;
using RyzStudio.Windows.Forms;
using System;
using System.Collections.Generic;
@@ -93,6 +94,9 @@ namespace FizzyLauncher
{
newToolStripMenuItem_Click(null, null);
}
+
+ /// todo: clean-up
+ toolStripButton5.Image = SimpleShapeGenerator.Circle(16, 1.6F, Color.Black);
}
protected async override void OnClosing(CancelEventArgs e)
@@ -157,54 +161,21 @@ namespace FizzyLauncher
case AppMode.Clear:
UIControl.SetText(this, AppResource.app_name);
- UIControl.SetEnable(closeToolStripMenuItem, false);
-
- 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);
-
+ UIControl.SetEnable(false, closeToolStripMenuItem, saveToolStripMenuItem, saveAsToolStripMenuItem, findToolStripMenuItem, toolStripMenuItem9, expandAllToolStripMenuItem, collapseAllToolStripMenuItem);
+ UIControl.SetEnable(false, toolStripButton3, toolStripButton4);
break;
case AppMode.Open:
- UIControl.SetEnable(closeToolStripMenuItem, true);
-
- 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);
-
+ UIControl.SetEnable(true, closeToolStripMenuItem, saveToolStripMenuItem, saveAsToolStripMenuItem, findToolStripMenuItem, toolStripMenuItem9, expandAllToolStripMenuItem, collapseAllToolStripMenuItem);
+ UIControl.SetEnable(true, toolStripButton3, toolStripButton4);
break;
case AppMode.New:
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(toolStripButton3, false);
- 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;
default: break;
}
diff --git a/MainForm.resx b/MainForm.resx
index f254feb..256477a 100644
--- a/MainForm.resx
+++ b/MainForm.resx
@@ -79,6 +79,15 @@
1290, 17
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACRSURBVDhPY/j27dt/SjDYACcnJ7IwigEf3n8kCZNswPNb
+ J/+f6DYF0yA+yQac6Db5f6hWCmwIiE+mC0wIu2DS2Vf/F1x6DefjwlgNyNr34r/0wkdgTMgQDAOQNRNj
+ CIoBOg0rMTTDMLIhIHbriZeYBmDTiIxBGkEYxge5liQDsGGQqykyAISpZwAlmIEywMAAAAc1/Jwvt6sN
+ AAAAAElFTkSuQmCC
+
+
AAABAAQAMDAAAAEAIACoJQAARgAAACAgAAABACAAqBAAAO4lAAAYGAAAAQAgAIgJAACWNgAAEBAAAAEA