예제 #1
0
 private void barButtonItemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (var aboutForm = new AboutForm())
     {
         aboutForm.ShowDialog();
     }
 }
예제 #2
0
 /// <summary>
 /// Shows the AboutForm
 /// </summary>
 private void About()
 {
     using (AboutForm af = new AboutForm())
       {
     af.ShowDialog(this);
       }
 }
예제 #3
0
파일: MainForm.cs 프로젝트: phxql/restester
 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);
     }
 }
예제 #5
0
파일: MainForm.cs 프로젝트: yvt/VxlToObj
 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();
     }
 }
예제 #8
0
 private void btnAbout_Click(object sender, System.EventArgs e)
 {
     using (var aboutForm = new AboutForm())
     {
         aboutForm.ShowDialog();
     }
 }
예제 #9
0
        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();
        }
예제 #11
0
파일: AboutForm.cs 프로젝트: byrod/YAME
        public static DialogResult Show(string version)
        {
            MsgBox = new AboutForm();

            MsgBox.label1.Text = version;

            MsgBox.ShowDialog();
            MsgBox.button1.Focus();
            return result;
        }
예제 #12
0
 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();
     }
 }
예제 #13
0
파일: MenuForm.cs 프로젝트: Vulpter/Hangman
        private void aboutButton_Click(object sender, EventArgs e)
        {
            try
            {
                AboutForm aboutForm = new AboutForm();
                aboutForm.ShowDialog();
            }
            catch (Exception ex)
            {

            }
        }
예제 #14
0
 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);
 }
예제 #15
0
파일: MainForm.cs 프로젝트: michyer/canape
        /// <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"));
        }
예제 #16
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutForm about = new AboutForm("DVTk QR SCU Emulator");

            about.ShowDialog();
        }
예제 #17
0
        private void 关于ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutForm form = new AboutForm();

            form.ShowDialog();
        }
예제 #18
0
파일: Form1.cs 프로젝트: 6555355/Scan_yan1
        private void menuItem6_Click(object sender, EventArgs e)
        {
            AboutForm aboutForm = new AboutForm();

            aboutForm.ShowDialog(this);
        }
예제 #19
0
        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();
        }
예제 #21
0
 private void event_OnAbout(object sender, EventArgs e)
 {
     using (var f = new AboutForm())
         f.ShowDialog();
 }
예제 #22
0
        private void bAbout_Click(object sender, System.EventArgs e)
        {
            AboutForm form = new AboutForm();

            form.ShowDialog();
        }
예제 #23
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmAboutBox = new AboutForm();

            frmAboutBox.ShowDialog(this);
        }
예제 #24
0
		} //exitMenuItem_Click

		private void aboutMenuItem_Click(object sender, EventArgs e)
		{
			AboutForm about = new AboutForm();
			about.ShowDialog(this);
		} //aboutMenuItem_Click
예제 #25
0
        void btAbout_Click(object sender, EventArgs e)
        {
            AboutForm about = new AboutForm();

            about.ShowDialog(this);
        }
예제 #26
0
        private void infoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var ab = new AboutForm();

            ab.ShowDialog();
        }
예제 #27
0
        /// <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();
        }
예제 #28
0
 private void helpToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     AboutForm f1 = new AboutForm();
     f1.ShowDialog();
 }
예제 #29
0
        void AboutToolStripMenuItemClick(object sender, EventArgs e)
        {
            AboutForm f = new AboutForm(this.imgHeader.BackColor);

            f.ShowDialog();
        }
예제 #30
0
        private void btnAbout_Click(object sender, EventArgs e)
        {
            Form About = new AboutForm();

            About.ShowDialog();
        }
예제 #31
0
        ///关于系统
        private void barBtn_systemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            AboutForm dlg = new AboutForm();

            dlg.ShowDialog();
        }
예제 #32
0
        /// <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();
        }
예제 #33
0
        void AboutToolStripMenuItemClick(object sender, EventArgs e)
        {
            AboutForm f = new AboutForm();

            f.ShowDialog();
        }
예제 #34
0
 private void sobreToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var frm = new AboutForm())
         frm.ShowDialog();
 }
예제 #35
0
        void AboutToolStripMenuItemClick(object sender, EventArgs e)
        {
            AboutForm about = new AboutForm();

            about.ShowDialog(this);
        }
예제 #36
0
        private void btnHelp_Click(object sender, EventArgs e)
        {
            AboutForm aboutFm = new AboutForm();

            aboutFm.ShowDialog();
        }
예제 #37
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            AboutForm aboutForm = new AboutForm();

            aboutForm.ShowDialog();
        }
예제 #38
0
        private void btnMMAbout_Click(object sender, EventArgs e)
        {
            AboutForm frm = new AboutForm();

            frm.ShowDialog();
        }
예제 #39
0
        /// <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);
        }
예제 #40
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenTKExtension.AboutForm fAbout = new AboutForm();
     fAbout.ShowDialog();
 }
예제 #41
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutForm af = new AboutForm();

            af.ShowDialog();
        }
예제 #42
0
        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;
            }
        }
예제 #44
0
        private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutForm About = new AboutForm();

            About.ShowDialog();
        }
예제 #45
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AboutForm f = new AboutForm())
     {
         f.ShowDialog(this);
     }
 }
예제 #46
0
파일: MainForm.cs 프로젝트: loonbg/mooege
 private void buttonAbout_Click(object sender, EventArgs e)
 {
     var aboutForm = new AboutForm();
     aboutForm.ShowDialog();
 }
예제 #47
0
        private void TSMIAbout_Click(object sender, EventArgs e)
        {
            AboutForm form = new AboutForm();

            form.ShowDialog();
        }
예제 #48
0
 public void ShowAboutBox()
 {
     _syncContext.Post(state =>
         {
             Logger.Write("Showing about box");
             var form = new AboutForm(this);
             form.StartPosition = FormStartPosition.CenterScreen;
             form.ShowDialog();
         }, null);
 }
예제 #49
0
 void MenuItemMainHelpAboutClick(object sender, EventArgs e)
 {
     AboutForm af=new AboutForm();
     af.ShowDialog(this);
     af.Dispose();
 }
예제 #50
0
 private void aboutMenuItem_Click(object sender, EventArgs e)
 {
     var aboutRSACryptoPad = new AboutForm(versionString);
     aboutRSACryptoPad.ShowDialog(this);
 }
예제 #51
0
 private void MenuHelpAbout_Click(object sender, EventArgs e)
 {
     var about = new AboutForm();
     about.ShowDialog();
 }
예제 #52
0
 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();
     }
 }
예제 #54
0
 private void _menuitemHelpAbout_Click(object sender, EventArgs e)
 {
     AboutForm f = new AboutForm();
     f.ShowDialog();
 }
예제 #55
0
		/// <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);
		}
예제 #56
0
		private void bAbout_Click(object sender, System.EventArgs e)
		{
			AboutForm form = new AboutForm();
			form.ShowDialog();
		}
예제 #57
0
 private void btnAbout_Click(object sender, EventArgs e)
 {
     AboutForm frmAbout = new AboutForm();
     frmAbout.StartPosition = FormStartPosition.CenterParent;
     frmAbout.ShowDialog(this);
 }
예제 #58
0
 void About_Click(object sender, EventArgs e)
 {
     AboutForm about = new AboutForm();
       about.ShowDialog();
 }
예제 #59
0
        private void menuItemAbout_Click(object sender, EventArgs e)
        {
            if (formState != FormState.FormStateMain)
                return;

            using (AboutForm aboutForm = new AboutForm())
                aboutForm.ShowDialog(this);
        }
예제 #60
-1
 private void aboutButton_Click(object sender, EventArgs e)
 {
     using (var about = new AboutForm())
        {
        about.ShowDialog();
        }
 }