private void phoenixIcon_Click(object sender, EventArgs e) { using (AboutDialog dlg = new AboutDialog()) { dlg.ShowDialog(); } }
public void Execute() { using (var about = new AboutDialog()) { about.ShowDialog (); } }
public override void CommandClick(string controlID) { if (controlID == ABOUT_AGS_COMMAND) { AboutDialog dialog = new AboutDialog(); dialog.ShowDialog(); dialog.Dispose(); } else if (controlID == VISIT_AGS_WEBSITE) { LaunchBrowserAtAGSWebsite(); } else if (controlID == VISIT_AGS_FORUMS) { LaunchBrowserAtAGSForums(); } else if (controlID == CHECK_FOR_UPDATES) { CheckForUpdates(); } else if (!File.Exists(_helpFileName)) { _guiController.ShowMessage("The help file '" + _helpFileName + "' is missing. You may need to reinstall AGS.", MessageBoxIcon.Warning); } else if (controlID == LAUNCH_HELP_COMMAND) { string keyword = string.Empty; if (_guiController.ActivePane != null) { keyword = _guiController.ActivePane.Control.HelpKeyword; } LaunchHelp(_helpFileName, HelpNavigator.KeywordIndex, keyword); } else if (controlID == HELP_CONTENTS_COMMAND) { Help.ShowHelp(GetHelpParentWindow(), _helpFileName); } else if (controlID == HELP_INDEX_COMMAND) { Help.ShowHelpIndex(GetHelpParentWindow(), _helpFileName); } else if (controlID == CRASH_EDITOR_COMMAND) { throw new AGSEditorException("Crash test"); } }
public override void CommandClick(string controlID) { if (controlID == CRASH_EDITOR_COMMAND) { throw new AGSEditorException("Crash test"); } else if (controlID == ABOUT_AGS_COMMAND) { AboutDialog dialog = new AboutDialog(); dialog.ShowDialog(); dialog.Dispose(); return; } else if (controlID == VISIT_AGS_WEBSITE) { LaunchBrowserAtAGSWebsite(); return; } else if (controlID == VISIT_AGS_FORUMS) { LaunchBrowserAtAGSForums(); return; } else if (controlID == CHECK_FOR_UPDATES) { CheckForUpdates(); return; } else if (!File.Exists(_helpFileName)) { _guiController.ShowMessage("The help file '" + _helpFileName + "' is missing. You may need to reinstall AGS.", MessageBoxIcon.Warning); return; } else if (Utils.AlternateStreams.GetZoneIdentifier(_helpFileName) > Utils.AlternateStreams.URLZONE_LOCAL_MACHINE) { if (_guiController.ShowQuestion("The help file '" + _helpFileName + "' has a restrictive Zone Identifier which needs to be removed." + Environment.NewLine + Environment.NewLine + "Do you want to try unblocking this file?") == DialogResult.Yes) { if (Utils.AlternateStreams.DeleteZoneIdentifier(_helpFileName)) { _guiController.ShowMessage("The help file was unblocked successfully.", MessageBoxIcon.Warning); } else { _guiController.ShowMessage("The help file couldn't be unblocked. Please try running the AGS editor using 'Run as administrator' and try to unblock the file again.", MessageBoxIcon.Warning); return; } } else { return; } } if (controlID == LAUNCH_HELP_COMMAND) { string keyword = string.Empty; if (_guiController.ActivePane != null) { keyword = _guiController.ActivePane.Control.HelpKeyword; } LaunchHelp(_helpFileName, HelpNavigator.KeywordIndex, keyword); } else if (controlID == HELP_CONTENTS_COMMAND) { Help.ShowHelp(GetHelpParentWindow(), _helpFileName); AdjustHelpWindowSize(); } else if (controlID == HELP_INDEX_COMMAND) { Help.ShowHelpIndex(GetHelpParentWindow(), _helpFileName); AdjustHelpWindowSize(); } }
private void TrayMenu_OnAbout(object sender, EventArgs e) { AboutDialog aboutDialog = new AboutDialog(this.Text, ProgrammingInterface.CS); aboutDialog.ShowDialog(this); }
private void AboutAppMenuItem_Click(object sender, RoutedEventArgs e) { this.Cursor = Cursors.Wait; try { AboutDialog dlg = new AboutDialog(this); dlg.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source, MessageBoxButton.OK, MessageBoxImage.Error); Logger.Log(String.Format("ERROR: {0}", ex.Message)); } finally { this.Cursor = null; } }
private void wizardSheet_About(object sender, EventArgs e) { AboutDialog dlgAbout = new AboutDialog("MPPS WCF"); dlgAbout.ShowDialog(this); }
private void buttonAbout_Click(object sender, EventArgs e) { AboutDialog dlgAbout = new AboutDialog(Messager.Caption); dlgAbout.ShowDialog(this); }
private void _aboutToolStripMenuItem_Click(object sender, EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("PDF Document", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("DICOM Anonymizer", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
public void ShowAbout() { AboutDialog dialogAbout = new AboutDialog("Storage Server Manager"); dialogAbout.ShowDialog(); }
private void ShowAbout() { AboutDialog about = new AboutDialog(); about.ShowDialog(); }
private void menuItemAbout_Click(object sender, System.EventArgs e) { AboutDialog aboutDialog = new AboutDialog(); aboutDialog.ShowDialog( this ); }
private void ShowAboutDialgoCommand_Execute() { AboutDialog dialog = new AboutDialog(); dialog.ShowDialog(); }
internal static void ShowAboutDialog() { using (Form dialog = new AboutDialog()) dialog.ShowDialog(); }
/// <summary> /// Öffnet den About Dialog /// </summary> public static void OpenAboutDialog() { var dialog = new AboutDialog(); dialog.ShowDialog(); }
//************************************************************************* // Method: btnAbout_Click() // /// <summary> /// Handles the Click event on the btnAbout button. /// </summary> /// /// <param name="sender"> /// Standard event argument. /// </param> /// /// <param name="e"> /// Standard event argument. /// </param> //************************************************************************* private void btnAbout_Click( object sender, RibbonControlEventArgs e ) { AssertValid(); AboutDialog oAboutDialog = new AboutDialog(); oAboutDialog.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { using (var aboutDialog = new AboutDialog()) { aboutDialog.ShowDialog(); } }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutDialog AboutWindow = new AboutDialog(); AboutWindow.ShowDialog(); }
/// <summary> /// Show the About dialog /// </summary> private void _miHelpAbout_Click(object sender, System.EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("Print Preview", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private MenuBar ConstructMenu() { var quitCommand = new Command { MenuText = "Quit", Shortcut = Application.Instance.CommonModifier | Keys.Q }; quitCommand.Executed += (sender, e) => Application.Instance.Quit(); var aboutCommand = new Command { MenuText = "About...", Shortcut = Keys.F1 }; aboutCommand.Executed += (sender, e) => AboutDialog.ShowDialog(this); var resetSettings = new Command { MenuText = "Reset to defaults" }; resetSettings.Executed += async(sender, e) => await ResetSettings(false); var loadSettings = new Command { MenuText = "Load settings...", Shortcut = Application.Instance.CommonModifier | Keys.O }; loadSettings.Executed += async(sender, e) => await LoadSettingsDialog(); var saveSettingsAs = new Command { MenuText = "Save settings as...", Shortcut = Application.Instance.CommonModifier | Keys.Shift | Keys.S }; saveSettingsAs.Executed += async(sender, e) => await SaveSettingsDialog(); var saveSettings = new Command { MenuText = "Save settings", Shortcut = Application.Instance.CommonModifier | Keys.S }; saveSettings.Executed += async(sender, e) => await SaveSettings(Settings); var applySettings = new Command { MenuText = "Apply settings", Shortcut = Application.Instance.CommonModifier | Keys.Enter }; applySettings.Executed += async(sender, e) => await ApplySettings(); var detectTablet = new Command { MenuText = "Detect tablet", Shortcut = Application.Instance.CommonModifier | Keys.D }; detectTablet.Executed += async(sender, e) => await DetectAllTablets(); var showTabletDebugger = new Command { MenuText = "Tablet debugger..." }; showTabletDebugger.Executed += (sender, e) => ShowTabletDebugger(); var showTabletVisualizer = new Command { MenuText = "Tablet visualizer..." }; showTabletVisualizer.Executed += (sender, e) => ShowTabletVisualizer(); var deviceStringReader = new Command { MenuText = "Device string reader..." }; deviceStringReader.Executed += (sender, e) => ShowDeviceStringReader(); var configurationEditor = new Command { MenuText = "Open Configuration Editor...", Shortcut = Application.Instance.CommonModifier | Keys.E }; configurationEditor.Executed += (sender, e) => ShowConfigurationEditor(); var pluginManager = new Command { MenuText = "Open Plugin Manager..." }; pluginManager.Executed += (sender, e) => ShowPluginManager(); var faqUrl = new Command { MenuText = "Open FAQ Page..." }; faqUrl.Executed += (sender, e) => SystemInterop.Open(FaqUrl); var showGuide = new Command { MenuText = "Show guide..." }; showGuide.Executed += async(sender, e) => await ShowFirstStartupGreeter(); var exportDiagnostics = new Command { MenuText = "Export diagnostics..." }; exportDiagnostics.Executed += async(sender, e) => await ExportDiagnostics(); return(new MenuBar { Items = { // File submenu new ButtonMenuItem { Text = "&File", Items = { loadSettings, saveSettings, saveSettingsAs, resetSettings, applySettings } }, // Tablets submenu new ButtonMenuItem { Text = "Tablets", Items = { detectTablet, showTabletDebugger, showTabletVisualizer, deviceStringReader, configurationEditor } }, // Plugins submenu new ButtonMenuItem { Text = "Plugins", Items = { pluginManager } }, new ButtonMenuItem { Text = "&Help", Items = { faqUrl, exportDiagnostics, showGuide } } }, ApplicationItems = { // application (OS X) or file menu (others) }, QuitItem = quitCommand, AboutItem = aboutCommand }); }
private void aboutMenuItem_Click(object sender, System.EventArgs e) { AboutDialog aboutDialog = new AboutDialog(); aboutDialog.ShowDialog(this); aboutDialog.Dispose(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutDialog dlg = new AboutDialog(); dlg.ShowDialog(this); }
private void aboutButton_Click(object sender, EventArgs e) { using (Form dialog = new AboutDialog()) dialog.ShowDialog(this); }
private void _miHelpAbout_Click(object sender, System.EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog(DemosGlobalization.GetResxString(GetType(), "Resx_WIA"), ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private void _miHelpAbout_Click(object sender, System.EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("Twain Capabilities and Fast Twain", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private void MenuItem_About_Click(object sender, RoutedEventArgs e) { var dlg = new AboutDialog(); dlg.ShowDialog(); }
private void _miHelpAbout_Click(object sender, EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("Ocr Zones Rubberband", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
public override void ShowAboutDialog() { using (AboutDialog dialog = new AboutDialog(this.ApplicationController)) { dialog.ShowDialog((IWin32Window)this.ApplicationController.MainWindow); } }
private static void ChartContext_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { ContextMenuStrip ptrMenuStrip = (ContextMenuStrip)sender; Chart ptrChart = (Chart)ptrMenuStrip.SourceControl; ChartArea ptrChartArea = ChartTool[ptrChart].ActiveChartArea; if (ptrChartArea == null) return; switch (e.ClickedItem.Text) { case "Select - Cursor 1": SetChartControlState(ptrChart, MSChartExtensionToolState.Select); break; case "Select - Cursor 2": SetChartControlState(ptrChart, MSChartExtensionToolState.Select2); break; case "Zoom Window": SetChartControlState(ptrChart, MSChartExtensionToolState.Zoom); break; case "Zoom XAxis": SetChartControlState(ptrChart, MSChartExtensionToolState.ZoomX); break; case "Zoom YAxis": SetChartControlState(ptrChart, MSChartExtensionToolState.ZoomY); break; case "Pan": SetChartControlState(ptrChart, MSChartExtensionToolState.Pan); break; case "Zoom Out": { WindowMessagesNativeMethods.SuspendDrawing(ptrChart); ptrChartArea.AxisX.ScaleView.ZoomReset(); ptrChartArea.AxisX2.ScaleView.ZoomReset(); ptrChartArea.AxisY.ScaleView.ZoomReset(); ptrChartArea.AxisY2.ScaleView.ZoomReset(); WindowMessagesNativeMethods.ResumeDrawing(ptrChart); ChartTool[ptrChart].ZoomChangedCallback?.Invoke(ptrChart); } break; case "Zoom Dialog...": { using (MSChartExtensionZoomDialog dlg = new Charting.MSChartExtensionZoomDialog(ptrChartArea)) { if (dlg.ShowDialog() == DialogResult.OK) ChartTool[ptrChart].ZoomChangedCallback?.Invoke(ptrChart); } } break; case "About...": using (AboutDialog dlg = new AboutDialog("MSChart Extension")) { dlg.FacebookLink = "https://www.facebook.com/CodeArtEngineering"; dlg.WebsiteLink = "http://www.codearteng.com/2016/08/mschart-extension-v2.html"; dlg.GitHubLink = "https://github.com/Code-Artist/MSChartExtension"; dlg.ShowDialog(); } break; } if (e.ClickedItem.Tag == null) return; if (e.ClickedItem.Tag.ToString() != "Series") return; //Series enable / disable changed. SeriesCollection chartSeries = ptrChart.Series; chartSeries[e.ClickedItem.Text].Enabled = !((ToolStripMenuItem)e.ClickedItem).Checked; }
private void menuHelpAbout_Click(object sender, EventArgs e) { AboutDialog ad = new AboutDialog(); ad.ShowDialog(); }
/// <summary> /// display the about dialog /// </summary> private void _miHelpAbout_Click(object sender, EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("Basic Features", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private void _mnuHelpAbout_Click(object sender, EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("MultipageConversions", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private void MenuHelpAbout_Click(object sender, EventArgs e) { var aboutWindow = new AboutDialog(); aboutWindow.ShowDialog(this); }
protected override void OnExecuted(EventArgs e) { base.OnExecuted(e); string license = @" Summary - Software: MIT Licence - Profession and specialization images: Guild Wars 2 Wiki contributors, GNU FDL v1.2 or newer - Other images: ArenaNet, All Rights Reserved Profession and specialization images Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ""GNU Free Documentation License"". For more details, see https://www.gnu.org/licenses/fdl-1.3.html. Non-profession images ©2010–2018 ArenaNet, LLC. All rights reserved. Guild Wars, Guild Wars 2, Heart of Thorns, Guild Wars 2: Path of Fire, ArenaNet, NCSOFT, the Interlocking NC Logo, and all associated logos and designs are trademarks or registered trademarks of NCSOFT Corporation. All other trademarks are the property of their respective owners. The Terms of Use are further detailed on the following URL: https://www.guildwars2.com/en/legal/guild-wars-2-content-terms-of-use/ The software MIT License Copyright (c) 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." ; var about = new AboutDialog { Logo = Resources.GetProgramIcon(), Website = new Uri("https://discord.gg/rNXRS6ZkYe"), WebsiteLabel = "Discord Server", License = license, Developers = new [] { "Sejsel" }, ProgramName = "arcdps Log Manager", ProgramDescription = "A manager for EVTC logs generated by arcdps, a Guild Wars 2 addon" }; about.ShowDialog(Application.Instance.MainForm); }
private void c_miHelpAbout_Click(object sender, EventArgs e) { AboutDialog dlg = new AboutDialog(); dlg.ShowDialog(this); }
private void menuItemAbout_Click(object sender, System.EventArgs e) { AboutDialog dlg = new AboutDialog("Dicom Find"); dlg.ShowDialog(this); }
public MainForm() { Title = "Stomp Rocket Math"; ClientSize = new Size(720, 480); //Icon = Icon.FromResource("StompRocketLogo.ico"); CalcModel = new CalcModel(MathResult); var MathDisplay = new Splitter { FixedPanel = SplitterFixedPanel.Panel1, Orientation = Orientation.Vertical, Panel1 = MathInput, Panel2 = MathResult, }; Padding = 10; Content = new Splitter { Orientation = Orientation.Vertical, FixedPanel = SplitterFixedPanel.Panel1, Panel1 = MathDisplay, Panel2 = CalculationBox, }; MathInput.TextBinding.Bind(CalcModel, m => m.Calculation); //MathResult.TextBinding.Bind(CalcModel, m => m.Calculation, DualBindingMode.OneWay); var aboutDialog = new AboutDialog { ProgramName = "Stomp Rocket Math", Developers = new[] { "swissChili" }, Copyright = "Copyright (c) 2019 Stomp Rocket <stomprocket.io>, All Rights Reserved", ProgramDescription = "A Smart Calculator", License = License.Text, }; var evalBtn = new Command { MenuText = "Evaluate", ToolBarText = "Evaluate", Shortcut = Application.Instance.CommonModifier | Keys.Enter, //Image = new Icon(), }; evalBtn.Executed += Evaluate; var editSeletedBtn = new Command { MenuText = "Edit Selected", ToolBarText = "Edit Selected", Shortcut = Application.Instance.CommonModifier | Keys.E, }; editSeletedBtn.Executed += EditSelected; var quitCommand = new Command { MenuText = "Quit", Shortcut = Application.Instance.CommonModifier | Keys.Q }; quitCommand.Executed += (sender, e) => Application.Instance.Quit(); var aboutCommand = new Command { MenuText = "About..." }; aboutCommand.Executed += (sender, e) => aboutDialog.ShowDialog(this); // create menu Menu = new MenuBar { Items = { // File submenu new ButtonMenuItem { Text = "&File", Items ={ evalBtn, editSeletedBtn } }, // new ButtonMenuItem { Text = "&Edit", Items = { /* commands/items */ } }, // new ButtonMenuItem { Text = "&View", Items = { /* commands/items */ } }, }, ApplicationItems = { // application (OS X) or file menu (others) new ButtonMenuItem { Text = "&Preferences..." }, }, QuitItem = quitCommand, AboutItem = aboutCommand }; // create toolbar ToolBar = new ToolBar { Items = { evalBtn, editSeletedBtn } }; }
void AboutClick(object sender, EventArgs e) { using (Form about = new AboutDialog()) { about.ShowDialog(); } }
private void _aboutButton_Click(object sender, EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("LTD Merge", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private MenuBar ConstructMenu() { var quitCommand = new Command { MenuText = "Quit", Shortcut = Application.Instance.CommonModifier | Keys.Q }; quitCommand.Executed += (sender, e) => Application.Instance.Quit(); var aboutCommand = new Command { MenuText = "About...", Shortcut = Keys.F1 }; aboutCommand.Executed += (sender, e) => AboutDialog.ShowDialog(this); var resetSettings = new Command { MenuText = "Reset to defaults" }; resetSettings.Executed += async(sender, e) => await ResetSettingsDialog(); var loadSettings = new Command { MenuText = "Load settings...", Shortcut = Application.Instance.CommonModifier | Keys.O }; loadSettings.Executed += async(sender, e) => await LoadSettingsDialog(); var saveSettingsAs = new Command { MenuText = "Save settings as...", Shortcut = Application.Instance.CommonModifier | Keys.Shift | Keys.S }; saveSettingsAs.Executed += async(sender, e) => await SaveSettingsDialog(); var saveSettings = new Command { MenuText = "Save settings", Shortcut = Application.Instance.CommonModifier | Keys.S }; saveSettings.Executed += async(sender, e) => await SaveSettings(); var applySettings = new Command { MenuText = "Apply settings", Shortcut = Application.Instance.CommonModifier | Keys.Enter }; applySettings.Executed += async(sender, e) => await ApplySettings(); var refreshPresets = new Command { MenuText = "Refresh presets" }; refreshPresets.Executed += async(sender, e) => await RefreshPresets(); var savePreset = new Command { MenuText = "Save as preset..." }; savePreset.Executed += async(sender, e) => await SavePresetDialog(); var detectTablet = new Command { MenuText = "Detect tablet", Shortcut = Application.Instance.CommonModifier | Keys.D }; detectTablet.Executed += async(sender, e) => await DetectTablet(); var showTabletDebugger = new Command { MenuText = "Tablet debugger..." }; showTabletDebugger.Executed += (sender, e) => App.Current.DebuggerWindow.Show(); var deviceStringReader = new Command { MenuText = "Device string reader..." }; deviceStringReader.Executed += (sender, e) => App.Current.StringReaderWindow.Show(); var configurationEditor = new Command { MenuText = "Open Configuration Editor...", Shortcut = Application.Instance.CommonModifier | Keys.E }; configurationEditor.Executed += (sender, e) => App.Current.ConfigEditorWindow.Show(); var pluginManager = new Command { MenuText = "Open Plugin Manager..." }; pluginManager.Executed += (sender, e) => App.Current.PluginManagerWindow.Show(); var wikiUrl = new Command { MenuText = "Open Wiki..." }; wikiUrl.Executed += (sender, e) => DesktopInterop.Open(WikiUrl); var showGuide = new Command { MenuText = "Show guide..." }; showGuide.Executed += (sender, e) => App.Current.StartupGreeterWindow.Show(); var exportDiagnostics = new Command { MenuText = "Export diagnostics..." }; exportDiagnostics.Executed += async(sender, e) => await ExportDiagnostics(); return(new MenuBar { Items = { // File submenu new ButtonMenuItem { Text = "&File", Items = { loadSettings, saveSettings, saveSettingsAs, resetSettings, applySettings, new SeparatorMenuItem(), refreshPresets, savePreset, new ButtonMenuItem { Text = "Presets", Items = { new ButtonMenuItem { Text = "No presets loaded", Enabled = false } } } } }, // Tablets submenu new ButtonMenuItem { Text = "Tablets", Items = { detectTablet, showTabletDebugger, deviceStringReader, configurationEditor } }, // Plugins submenu new ButtonMenuItem { Text = "Plugins", Items = { pluginManager } }, new ButtonMenuItem { Text = "&Help", Items = { wikiUrl, exportDiagnostics, showGuide } } }, ApplicationItems = { // application (OS X) or file menu (others) }, QuitItem = quitCommand, AboutItem = aboutCommand }); }
private void MenuItemAbout_Click(object sender, System.EventArgs e) { AboutDialog aboutDialog = new AboutDialog(); aboutDialog.ShowDialog(this); }
private void About() { using (var ad = new AboutDialog()) { ad.ShowDialog(); } }
/// <summary> /// show the about dialog /// </summary> private void _miHelpAbout_Click(object sender, System.EventArgs e) { using (AboutDialog aboutDialog = new AboutDialog("J2KLargeImageSave Demo", ProgrammingInterface.CS)) aboutDialog.ShowDialog(this); }
private void MenuHelpAbout_Click(object sender, System.EventArgs e) { using (AboutDialog af = new AboutDialog()) { af.ShowDialog(AppWorkspace); } }
public SynthesisGUI() { InitializeComponent(); Instance = this; robotViewer1.LoadSettings(ViewerSettings); bxdaEditorPane1.Units = ViewerSettings.modelUnits; RigidNode_Base.NODE_FACTORY = delegate(Guid guid) { return(new OGL_RigidNode(guid)); }; fileNew.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { SetNew(); }); fileLoad.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { LoadFromInventor(); }); fileOpen.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { OpenExisting(); }); fileSave.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { SaveRobot(false); }); fileSaveAs.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { SaveRobot(true); }); fileExit.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { Close(); }); settingsExporter.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { var defaultValues = BXDSettings.Instance.GetSettingsObject("Exporter Settings"); ExporterSettingsForm eSettingsForm = new ExporterSettingsForm((defaultValues != null) ? (ExporterSettingsForm.ExporterSettingsValues)defaultValues : ExporterSettingsForm.GetDefaultSettings()); eSettingsForm.ShowDialog(this); BXDSettings.Instance.AddSettingsObject("Exporter Settings", eSettingsForm.values); ExporterSettings = eSettingsForm.values; }); settingsViewer.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { var defaultValues = BXDSettings.Instance.GetSettingsObject("Viewer Settings"); ViewerSettingsForm vSettingsForm = new ViewerSettingsForm((defaultValues != null) ? (ViewerSettingsForm.ViewerSettingsValues)defaultValues : ViewerSettingsForm.GetDefaultSettings()); vSettingsForm.ShowDialog(this); BXDSettings.Instance.AddSettingsObject("Viewer Settings", vSettingsForm.values); ViewerSettings = vSettingsForm.values; robotViewer1.LoadSettings(ViewerSettings); bxdaEditorPane1.Units = ViewerSettings.modelUnits; }); helpAbout.Click += new System.EventHandler(delegate(object sender, System.EventArgs e) { AboutDialog about = new AboutDialog(); about.ShowDialog(this); }); this.FormClosing += new FormClosingEventHandler(delegate(object sender, FormClosingEventArgs e) { if (SkeletonBase != null && !WarnUnsaved()) { e.Cancel = true; } else { BXDSettings.Save(); } InventorManager.ReleaseInventor(); }); jointEditorPane1.ModifiedJoint += delegate(List <RigidNode_Base> nodes) { if (nodes == null || nodes.Count == 0) { return; } foreach (RigidNode_Base node in nodes) { if (node.GetSkeletalJoint() != null && node.GetSkeletalJoint().cDriver != null && node.GetSkeletalJoint().cDriver.GetInfo <WheelDriverMeta>() != null && node.GetSkeletalJoint().cDriver.GetInfo <WheelDriverMeta>().radius == 0 && node is OGL_RigidNode) { float radius, width; BXDVector3 center; (node as OGL_RigidNode).GetWheelInfo(out radius, out width, out center); WheelDriverMeta wheelDriver = node.GetSkeletalJoint().cDriver.GetInfo <WheelDriverMeta>(); wheelDriver.center = center; wheelDriver.radius = radius; wheelDriver.width = width; node.GetSkeletalJoint().cDriver.AddInfo(wheelDriver); } } }; jointEditorPane1.SelectedJoint += robotViewer1.SelectJoints; jointEditorPane1.SelectedJoint += bxdaEditorPane1.SelectJoints; robotViewer1.NodeSelected += jointEditorPane1.AddSelection; robotViewer1.NodeSelected += bxdaEditorPane1.AddSelection; bxdaEditorPane1.NodeSelected += (BXDAMesh mesh) => { List <RigidNode_Base> nodes = new List <RigidNode_Base>(); SkeletonBase.ListAllNodes(nodes); jointEditorPane1.AddSelection(nodes[Meshes.IndexOf(mesh)], true); }; bxdaEditorPane1.NodeSelected += (BXDAMesh mesh) => { List <RigidNode_Base> nodes = new List <RigidNode_Base>(); SkeletonBase.ListAllNodes(nodes); robotViewer1.SelectJoints(nodes.GetRange(Meshes.IndexOf(mesh), 1)); }; }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutDialog aboutDialog = new AboutDialog(); aboutDialog.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutDialog ad = new AboutDialog(); ad.ShowDialog(); }