private void barButtonItemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { using (var aboutForm = new AboutForm()) { aboutForm.ShowDialog(); } }
/// <summary> /// Shows the AboutForm /// </summary> private void About() { using (AboutForm af = new AboutForm()) { af.ShowDialog(this); } }
private void infoToolStripMenuItem_Click(object sender, EventArgs e) { using (AboutForm form = new AboutForm()) { form.ShowDialog(); } }
/// <summary> /// Shows the About form with the specified owner window. /// </summary> /// <param name="owner">Owner window.</param> public static void Execute(IWin32Window owner) { using (AboutForm aboutForm = new AboutForm()) { aboutForm.ShowDialog(owner); } }
private void aboutButton_Click(object sender, EventArgs e) { using (var dlg = new AboutForm()) { dlg.ShowDialog(this); } }
private void aboutToolStripMenuItem1_Click(object sender, EventArgs e) { using (var a = new AboutForm()) { a.ShowDialog(); } }
public void OpenAboutForm() { using (var form = new AboutForm()) { form.ShowDialog(); } }
private void btnAbout_Click(object sender, System.EventArgs e) { using (var aboutForm = new AboutForm()) { aboutForm.ShowDialog(); } }
private void aboutMnuItem_Click(object sender, EventArgs e) { AboutForm form = new AboutForm(); if (DialogResult.OK == form.ShowDialog()) { } }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { String aboutText = Properties.Resources.AboutStringRes; AboutForm aboutForm = new AboutForm(aboutText.Replace("#",Environment.NewLine+Environment.NewLine)); aboutForm.StartPosition = FormStartPosition.CenterParent; aboutForm.ShowDialog(); }
public static DialogResult Show(string version) { MsgBox = new AboutForm(); MsgBox.label1.Text = version; MsgBox.ShowDialog(); MsgBox.button1.Focus(); return result; }
public static void ShowModal() { using (AboutForm af = new AboutForm()) { string version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); af.ProgramVersion = version.Substring(0, version.Length - 4); af.Title = Util.GetTitle(); af.ShowDialog(); } }
private void aboutButton_Click(object sender, EventArgs e) { try { AboutForm aboutForm = new AboutForm(); aboutForm.ShowDialog(); } catch (Exception ex) { } }
protected override void WndProc(ref Message m) { // Check if a System Command has been executed if (m.Msg == WinAPI.WM_SYSCOMMAND) { // Execute the appropriate code for the System Menu item that was clicked switch (m.WParam.ToInt32()) { case _AboutSysMenuID: AboutForm af = new AboutForm(); af.StartPosition = FormStartPosition.CenterParent; af.ShowDialog(); break; default: break; } } base.WndProc(ref m); }
/// <summary> /// Constructor /// </summary> /// <param name="fileName">A file to open at startup</param> public MainForm(string fileName) { if (!Properties.Settings.Default.DontShowSplash) { using (AboutForm frm = new AboutForm(true)) { frm.ShowDialog(); } } InitializeComponent(); MainFormMenuExtensionManager.Instance.AddToMenu(menuStrip, extensionToolStripMenuItem, ExtensionMenuClicked); CANAPEServiceProvider.GlobalInstance.RegisterService(typeof(IDocumentControl), this); _projectExplorer = new ProjectExplorer(); _fileName = fileName; _entries = new Dictionary<IDocumentObject, DockContent>(); // Check for help file precense aPIHelpToolStripMenuItem.Enabled = File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Help", "CANAPE_Documentation.chm")); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutForm about = new AboutForm("DVTk QR SCU Emulator"); about.ShowDialog(); }
private void 关于ToolStripMenuItem_Click(object sender, EventArgs e) { AboutForm form = new AboutForm(); form.ShowDialog(); }
private void menuItem6_Click(object sender, EventArgs e) { AboutForm aboutForm = new AboutForm(); aboutForm.ShowDialog(this); }
private void aboutButton_Click(object sender, EventArgs e) { AboutForm f = new AboutForm(); f.ShowDialog(); }
private void TsmiAbout_Click(object sender, EventArgs e) { var aboutForm = new AboutForm(); aboutForm.ShowDialog(); }
private void event_OnAbout(object sender, EventArgs e) { using (var f = new AboutForm()) f.ShowDialog(); }
private void bAbout_Click(object sender, System.EventArgs e) { AboutForm form = new AboutForm(); form.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { Form frmAboutBox = new AboutForm(); frmAboutBox.ShowDialog(this); }
} //exitMenuItem_Click private void aboutMenuItem_Click(object sender, EventArgs e) { AboutForm about = new AboutForm(); about.ShowDialog(this); } //aboutMenuItem_Click
void btAbout_Click(object sender, EventArgs e) { AboutForm about = new AboutForm(); about.ShowDialog(this); }
private void infoToolStripMenuItem_Click(object sender, EventArgs e) { var ab = new AboutForm(); ab.ShowDialog(); }
/// <summary> /// The about tool strip menu item click. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void AboutToolStripMenuItemClick(object sender, EventArgs e) { var aboutForm = new AboutForm(); aboutForm.ShowDialog(); }
private void helpToolStripMenuItem1_Click(object sender, EventArgs e) { AboutForm f1 = new AboutForm(); f1.ShowDialog(); }
void AboutToolStripMenuItemClick(object sender, EventArgs e) { AboutForm f = new AboutForm(this.imgHeader.BackColor); f.ShowDialog(); }
private void btnAbout_Click(object sender, EventArgs e) { Form About = new AboutForm(); About.ShowDialog(); }
///关于系统 private void barBtn_systemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { AboutForm dlg = new AboutForm(); dlg.ShowDialog(); }
/// <summary> /// Event handler for about help menu item. /// </summary> /// <param name="sender">The sender object.</param> /// <param name="e">The event arguments.</param> private void aboutActiveUpMailSystemClientToolStripMenuItem_Click(object sender, EventArgs e) { AboutForm aboutForm = new AboutForm(); aboutForm.ShowDialog(); }
void AboutToolStripMenuItemClick(object sender, EventArgs e) { AboutForm f = new AboutForm(); f.ShowDialog(); }
private void sobreToolStripMenuItem_Click(object sender, EventArgs e) { using (var frm = new AboutForm()) frm.ShowDialog(); }
void AboutToolStripMenuItemClick(object sender, EventArgs e) { AboutForm about = new AboutForm(); about.ShowDialog(this); }
private void btnHelp_Click(object sender, EventArgs e) { AboutForm aboutFm = new AboutForm(); aboutFm.ShowDialog(); }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { AboutForm aboutForm = new AboutForm(); aboutForm.ShowDialog(); }
private void btnMMAbout_Click(object sender, EventArgs e) { AboutForm frm = new AboutForm(); frm.ShowDialog(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void About_Click(object sender, System.EventArgs e) { AboutForm frm = new AboutForm(_points); frm.ShowDialog(this); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { OpenTKExtension.AboutForm fAbout = new AboutForm(); fAbout.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutForm af = new AboutForm(); af.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { var about = new AboutForm(); about.ShowDialog(this); }
private void Action(string tag) { switch (tag) { case "NEW_PROF": //NewProfile(); break; case "CREATE_ENV": using (NewEnvForm env = new NewEnvForm()) { if (env.ShowDialog().Equals(DialogResult.OK)) { // Check if exist name if (_envVariables.SetEnvironmentVariable(env.EnvName, env.EnvValue)) { using (RestartForm r = new RestartForm(env.EnvName, tag)) { if (r.ShowDialog().Equals(DialogResult.OK)) { Application.Restart(); } else { InitEnvironmentVariables(); } } } } } break; case "ENV_UPDATE": DialogResult resu = MessageBox.Show(string.Format("Are you sure you want to update {0} in environment variable?", txtEnvName.Text), "Update Environment", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (resu.Equals(DialogResult.Yes)) { if (_envVariables.SetEnvironmentVariable(txtEnvName.Text, txtEnvValue.Text)) { using (RestartForm r = new RestartForm(txtEnvName.Text, tag)) { if (r.ShowDialog().Equals(DialogResult.OK)) { InitEnvironmentVariables(); } } } } break; case "ENV_DELETE": DialogResult resd = MessageBox.Show(string.Format("Are you sure you want to delete {0} in environment variable?", txtEnvName.Text), "Delete Environment", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (resd.Equals(DialogResult.Yes)) { if (_envVariables.DeleteEnvironmentVariable(txtEnvName.Text)) { using (RestartForm r = new RestartForm(txtEnvName.Text, tag)) { if (r.ShowDialog().Equals(DialogResult.OK)) { InitEnvironmentVariables(); } } } } break; case "FIND": break; case "SAVE": if (_isLoading) { return; } using (NewArchive na = new NewArchive()) { if (na.ShowDialog().Equals(DialogResult.OK)) { } } break; case "ADD_FILE": AddFiles(AddFile.FILES); break; case "ADD_FOLDER": AddFiles(AddFile.FOLDER); break; case "REFRESH": InitWorkspace(); break; case "SERVER_CONFIG": case "OPTIONS": using (ConfigServerForm config = new ConfigServerForm(tag.Equals("SERVER_CONFIG") ? 1 : 0)) { if (config.ShowDialog().Equals(DialogResult.OK)) { InitSettings(); } } break; case "EXIT": Close(); break; case "ABOUT": using (AboutForm about = new AboutForm()) { about.ShowDialog(); } break; case "HELP": using (HelpForm help = new HelpForm()) { help.ShowDialog(); } break; case "TOOLBAR": RegConfig.Set <bool>("Toolbar", hideToolbarToolStripMenuItem.Checked); toolStripUploader.Visible = hideToolbarToolStripMenuItem.Checked; break; case "STATUSBAR": RegConfig.Set <bool>("Statusbar", hideStatusbarToolStripMenuItem.Checked); statusStripUploader.Visible = hideStatusbarToolStripMenuItem.Checked; break; case "PROFILE_DETAILS": break; case "PROFILE_EXPLORER": RegConfig.Set <bool>("ProfileExplorer", profileExplorerToolStripMenuItem.Checked); splitContainer1.Panel1Collapsed = !profileExplorerToolStripMenuItem.Checked; break; case "LOGS": RegConfig.Set <bool>("Logs&Details", logsToolStripMenuItem.Checked); splitContainer2.Panel2Collapsed = !logsToolStripMenuItem.Checked; break; case "CLEAR_WORKSPACE": if (_archives != null) { if (MessageBox.Show("Workspace will be deleted permanently!\nAre you sure you want to clear all workspace?", "Clear Workspace", MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes)) { List <Archive> ws = _archives.GetProfiles(); if (ws.Count > 0) { foreach (Archive w in ws) { } } _archives.ClearWorkspaces(); InitWorkspace(); } } break; case "CLEAR_LOGS": if (_logs != null) { if (MessageBox.Show("Logs will be deleted permanently!\nAre you sure you want to clear all logs?", "Clear Logs", MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes)) { _logs.ClearAllLog(); _logs.Initialize(logsListBox); } } break; case "CLEAR_HISTORY": if (_selectedArchive != null) { if (MessageBox.Show("History will be deleted permanently!\nAre you sure you want to clear all history?", "Clear History", MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes)) { } } break; case "SOURCE_EXT": case "SOURCE_FOLDER": break; default: break; } }
private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e) { AboutForm About = new AboutForm(); About.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { using (AboutForm f = new AboutForm()) { f.ShowDialog(this); } }
private void buttonAbout_Click(object sender, EventArgs e) { var aboutForm = new AboutForm(); aboutForm.ShowDialog(); }
private void TSMIAbout_Click(object sender, EventArgs e) { AboutForm form = new AboutForm(); form.ShowDialog(); }
public void ShowAboutBox() { _syncContext.Post(state => { Logger.Write("Showing about box"); var form = new AboutForm(this); form.StartPosition = FormStartPosition.CenterScreen; form.ShowDialog(); }, null); }
void MenuItemMainHelpAboutClick(object sender, EventArgs e) { AboutForm af=new AboutForm(); af.ShowDialog(this); af.Dispose(); }
private void aboutMenuItem_Click(object sender, EventArgs e) { var aboutRSACryptoPad = new AboutForm(versionString); aboutRSACryptoPad.ShowDialog(this); }
private void MenuHelpAbout_Click(object sender, EventArgs e) { var about = new AboutForm(); about.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutForm form = new AboutForm(); form.ShowDialog(); }
/// <summary> /// Handles the Click event of the toolStripDropDownButton1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void toolStripDropDownButton1_Click(object sender, EventArgs e) { using (AboutForm aboutForm = new AboutForm()) { aboutForm.ShowDialog(); } }
private void _menuitemHelpAbout_Click(object sender, EventArgs e) { AboutForm f = new AboutForm(); f.ShowDialog(); }
/// <summary> /// Click the About menu item /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void aboutOptionMenuItem_Click(object sender, EventArgs e) { AboutForm form = new AboutForm(); form.Config = this.Config; form.ShowDialog(this); }
private void btnAbout_Click(object sender, EventArgs e) { AboutForm frmAbout = new AboutForm(); frmAbout.StartPosition = FormStartPosition.CenterParent; frmAbout.ShowDialog(this); }
void About_Click(object sender, EventArgs e) { AboutForm about = new AboutForm(); about.ShowDialog(); }
private void menuItemAbout_Click(object sender, EventArgs e) { if (formState != FormState.FormStateMain) return; using (AboutForm aboutForm = new AboutForm()) aboutForm.ShowDialog(this); }
private void aboutButton_Click(object sender, EventArgs e) { using (var about = new AboutForm()) { about.ShowDialog(); } }