/// <summary> /// Override the base class Execute method to show and hide the window /// </summary> public override void Execute() { if (this.Checked) { _window.Show(); } else { _window.Hide(); } }
public override void Execute() { if (_window.Visible) { _window.Hide(); } else { _window.Show(); } }
private void ShowAddin_ToolClick(object sender, EventArgs e) { StateButtonTool tool = (StateButtonTool)sender; string[] toolNameSplit = tool.Key.Split('.'); string toolName = toolNameSplit[toolNameSplit.Length - 1]; if (toolName.ToUpper(System.Globalization.CultureInfo.InvariantCulture) == "NEW ADDIN") { if (tool.Checked) { mAddinWindow.Show(); } else { mAddinWindow.Hide(); } } }