Fixed: toggle options menu on app state

This commit is contained in:
Ray 2020-08-23 12:30:22 +01:00
parent c491b5a34e
commit b228388c41
5 changed files with 15 additions and 9 deletions

13
MainForm.Designer.cs generated
View File

@ -204,6 +204,7 @@ namespace bzit.bomg
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Padding = new System.Windows.Forms.Padding(5, 0, 1, 0);
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStrip1.ShowItemToolTips = false;
this.toolStrip1.Size = new System.Drawing.Size(304, 25);
this.toolStrip1.TabIndex = 25;
this.toolStrip1.Text = "toolStrip1";
@ -330,27 +331,27 @@ namespace bzit.bomg
// expandAllViewMenuItem
//
this.expandAllViewMenuItem.Name = "expandAllViewMenuItem";
this.expandAllViewMenuItem.Size = new System.Drawing.Size(205, 22);
this.expandAllViewMenuItem.Size = new System.Drawing.Size(204, 22);
this.expandAllViewMenuItem.Text = "&Expand All";
this.expandAllViewMenuItem.Click += new System.EventHandler(this.viewExpandAllMenuItem_Click);
//
// collapseAllViewMenuItem
//
this.collapseAllViewMenuItem.Name = "collapseAllViewMenuItem";
this.collapseAllViewMenuItem.Size = new System.Drawing.Size(205, 22);
this.collapseAllViewMenuItem.Size = new System.Drawing.Size(204, 22);
this.collapseAllViewMenuItem.Text = "&Collapse All";
this.collapseAllViewMenuItem.Click += new System.EventHandler(this.viewCollapseAllMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(202, 6);
this.toolStripMenuItem1.Size = new System.Drawing.Size(201, 6);
//
// alwaysOnTopToolStripMenuItem1
//
this.alwaysOnTopToolStripMenuItem1.Name = "alwaysOnTopToolStripMenuItem1";
this.alwaysOnTopToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F11)));
this.alwaysOnTopToolStripMenuItem1.Size = new System.Drawing.Size(205, 22);
this.alwaysOnTopToolStripMenuItem1.Size = new System.Drawing.Size(204, 22);
this.alwaysOnTopToolStripMenuItem1.Text = "Always On &Top";
this.alwaysOnTopToolStripMenuItem1.Click += new System.EventHandler(this.viewAlwaysOnTopMenuItem_Click);
//
@ -362,7 +363,7 @@ namespace bzit.bomg
this.toolStripDropDownButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton4.Name = "toolStripDropDownButton4";
this.toolStripDropDownButton4.ShowDropDownArrow = false;
this.toolStripDropDownButton4.Size = new System.Drawing.Size(39, 22);
this.toolStripDropDownButton4.Size = new System.Drawing.Size(38, 22);
this.toolStripDropDownButton4.Text = "&Tools";
//
// optionsToolMenuItem
@ -370,7 +371,7 @@ namespace bzit.bomg
this.optionsToolMenuItem.Image = global::bzit.bomg.Properties.Resources.settings;
this.optionsToolMenuItem.Name = "optionsToolMenuItem";
this.optionsToolMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F12;
this.optionsToolMenuItem.Size = new System.Drawing.Size(180, 22);
this.optionsToolMenuItem.Size = new System.Drawing.Size(141, 22);
this.optionsToolMenuItem.Text = "&Options";
this.optionsToolMenuItem.Click += new System.EventHandler(this.toolsOptionsMenuItem_Click);
//

View File

@ -222,6 +222,7 @@ namespace bzit.bomg
saveAsFileMenuItem.Enabled = false;
findEditMenuItem.Enabled = false;
expandAllViewMenuItem.Enabled = collapseAllViewMenuItem.Enabled = false;
optionsToolMenuItem.Enabled = false;
break;
case AppMode.Open:
@ -230,6 +231,7 @@ namespace bzit.bomg
saveAsFileMenuItem.Enabled = true;
findEditMenuItem.Enabled = true;
expandAllViewMenuItem.Enabled = collapseAllViewMenuItem.Enabled = true;
optionsToolMenuItem.Enabled = true;
break;
case AppMode.New:
@ -240,6 +242,7 @@ namespace bzit.bomg
saveAsFileMenuItem.Enabled = true;
findEditMenuItem.Enabled = true;
expandAllViewMenuItem.Enabled = collapseAllViewMenuItem.Enabled = true;
optionsToolMenuItem.Enabled = true;
break;
}

View File

@ -258,7 +258,7 @@ namespace bzit.bomg.Properties {
}
/// <summary>
/// Looks up a localized string similar to https://www.hiimray.co.uk.
/// Looks up a localized string similar to https://www.hiimray.co.uk/software-bookmark-manager.
/// </summary>
internal static string url_about {
get {

View File

@ -179,7 +179,7 @@
<value>..\Resources\2\trash-2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="url_about" xml:space="preserve">
<value>https://www.hiimray.co.uk</value>
<value>https://www.hiimray.co.uk/software-bookmark-manager</value>
</data>
<data name="url_help" xml:space="preserve">
<value>https://www.hiimray.co.uk/software-bookmark-manager</value>

View File

@ -77,6 +77,9 @@
<OutputPath>bin\Release\</OutputPath>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
</PropertyGroup>
<ItemGroup>
<Reference Include="HtmlAgilityPack, Version=1.11.24.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
<HintPath>packages\HtmlAgilityPack.1.11.24\lib\Net45\HtmlAgilityPack.dll</HintPath>
@ -239,7 +242,6 @@
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>