コード例 #1
0
 /// <summary>
 /// 关于响应事件
 /// </summary>
 /// <param name="Ctrl"></param>
 /// <param name="CancelDefault"></param>
 public static void btnAbout_Click(CommandBarButton Ctrl, ref bool CancelDefault)
 {
     ThisAddIn.g_log.Info("operator:btnAboutClicked begin");
     try
     {
         AboutBox aboutBox = new AboutBox();
         aboutBox.ShowDialog();
     }
     catch (Exception ex)
     {
         ThisAddIn.g_log.Error(string.Format("open about failed, because {0}", ex.Message));
         MessageBox.Show(ex.Message);
     }
     ThisAddIn.g_log.Info("operator:btnAboutClicked end");
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: rsudama/Klabr
 private void OnAbout(object sender, ExecutedRoutedEventArgs e)
 {
     AboutBox about = new AboutBox(this);
     about.ShowDialog();
 }
コード例 #3
0
ファイル: MainUI.cs プロジェクト: 5dollartools/NAM
 private void tsAbout_Click(object sender, EventArgs e)
 {
     AboutBox objAbout = new AboutBox();
     objAbout.ShowDialog();
 }
コード例 #4
0
ファイル: ExplorerForm.cs プロジェクト: ittray/LocalDemo
 void OnAbout(object sender,EventArgs e)
 {
    AboutBox about = new AboutBox();
    about.ShowDialog();
 }
コード例 #5
0
 public void ShowAboutDialog()
 {
     AboutBox dialog = new AboutBox();
     dialog.ShowDialog();
 }
コード例 #6
0
ファイル: MainForm.cs プロジェクト: xuchuansheng/GenXSource
		private void aboutMenu_Click(object sender, EventArgs e)
		{
			AboutBox aboutBox = new AboutBox();

			aboutBox.ShowDialog();
		}
コード例 #7
0
 private void hover_FileAboutClicked(object sender, EventArgs e)
 {
     AboutBox dlg = new AboutBox();
     dlg.ShowDialog(this);
 }
コード例 #8
0
        private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var window = new AboutBox();

            window.ShowDialog(this);
        }
コード例 #9
0
        void mnuItemAbout_Click(object sender, EventArgs e)
        {
            AboutBox aboutBox = new AboutBox();

            aboutBox.ShowDialog(this);
        }
コード例 #10
0
        private void AboutToolStripMenuItem1Click(object sender, EventArgs e)
        {
            var aboutBox = new AboutBox();

            aboutBox.ShowDialog(this);
        }
コード例 #11
0
ファイル: BaseForm.cs プロジェクト: J-Nicholas/StudyTracker
 private void AboutButton_Click(object sender, EventArgs e)
 {
     OnSideBarMenuClicked();
     AboutBox.ShowDialog();
 }
コード例 #12
0
        public static void ShowAbout()
        {
            AboutBox frmAbout = new AboutBox();

            frmAbout.ShowDialog();
        }
コード例 #13
0
ファイル: MainForm.cs プロジェクト: BJFX/UWACN
        private void about_Click(object sender, EventArgs e)
        {
            AboutBox ab = new AboutBox();

            ab.ShowDialog();
        }
コード例 #14
0
ファイル: MainForm.cs プロジェクト: joyjones/fire-terminator
        private void iAbout_ItemClick(object sender, ItemClickEventArgs e)
        {
            AboutBox frm = new AboutBox();

            frm.ShowDialog();
        }
コード例 #15
0
ファイル: MainWindow.xaml.cs プロジェクト: paperwork/IENetP
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ExecutedAbout(object sender, ExecutedRoutedEventArgs e)
        {
            AboutBox box = new AboutBox(this);

            box.ShowDialog();
        }
コード例 #16
0
        private void aboutToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            var abtBox = new AboutBox();

            abtBox.ShowDialog();
        }
コード例 #17
0
ファイル: MainWindow.cs プロジェクト: ricksladkey/Sokoban
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AboutBox about = new AboutBox())
     {
         about.ShowDialog();
     }
 }
コード例 #18
0
ファイル: ThisAddIn.cs プロジェクト: yyjb5/OfficeDrawIo
        public void About()
        {
            var dlg = new AboutBox();

            dlg.ShowDialog();
        }
コード例 #19
0
 private void CommandBinding_About(object sender, ExecutedRoutedEventArgs e)
 {
     var ab = new AboutBox(this);
     ab.ShowDialog();
 }
コード例 #20
0
        public static void ShowAbout(Object obj)
        {
            AboutBox AboutDlg = new AboutBox(Application.Current.Windows[0]);

            AboutDlg.ShowDialog();
        }
コード例 #21
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox aboutBox = new AboutBox();
     aboutBox.ShowDialog();
 }
コード例 #22
0
        /// <summary>
        /// Opens an About box.
        /// </summary>
        private void OnAbout(object sender, EventArgs e)
        {
            Form form = new AboutBox();

            form.ShowDialog();
        }
コード例 #23
0
 /// <summary>
 /// About command handler
 /// </summary>
 public void About()
 {
     AboutBox about = new AboutBox(Application.Current.MainWindow);
     about.Title = @"About SimpleConverter";
     try
     {
         System.IO.StreamReader reader = new System.IO.StreamReader(Application.GetResourceStream(new System.Uri("/about.txt", UriKind.Relative)).Stream);
         about.description.Text = reader.ReadToEnd();
     }
     catch (System.IO.IOException)
     {
     }
     about.ShowDialog();
 }
コード例 #24
0
        private void linkAbout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            AboutBox aboutBox = new AboutBox();

            aboutBox.ShowDialog();
        }
コード例 #25
0
        /// <summary>
        /// About Tool
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dlg = new AboutBox();

            dlg.ShowDialog();
        }
コード例 #26
0
        private void WireUpEvents()
        {
            #region Model Events

            _model.Events.TestsLoading += (TestFilesLoadingEventArgs e) =>
            {
                UpdateViewCommands(testLoading: true);

                var message = e.TestFilesLoading.Count == 1 ?
                              $"Loading Assembly: {e.TestFilesLoading[0]}" :
                              $"Loading {e.TestFilesLoading.Count} Assemblies...";

                _longOpDisplay = _view.LongOperationDisplay(message);
            };

            _model.Events.TestLoaded += (TestNodeEventArgs e) =>
            {
                if (_longOpDisplay != null)
                {
                    _longOpDisplay.Dispose();
                    _longOpDisplay = null;
                }

                UpdateViewCommands();

                var files = _model.TestFiles;
                if (files.Count == 1)
                {
                    _view.SetTitleBar(files.First());
                }
            };

            _model.Events.TestsUnloading += (TestEventArgse) =>
            {
                UpdateViewCommands();
            };

            _model.Events.TestUnloaded += (TestEventArgs e) =>
            {
                _view.RunSummary.Text = null;

                UpdateViewCommands();
            };

            _model.Events.TestsReloading += (TestEventArgs e) =>
            {
                UpdateViewCommands();

                _longOpDisplay = _view.LongOperationDisplay("Reloading...");
            };

            _model.Events.TestReloaded += (TestNodeEventArgs e) =>
            {
                if (_longOpDisplay != null)
                {
                    _longOpDisplay.Dispose();
                    _longOpDisplay = null;
                }

                //SetTitleBar(TestProject.Name);

                if (_settings.Gui.ClearResultsOnReload)
                {
                    _view.RunSummary.Text = null;
                }

                UpdateViewCommands();
            };

            _model.Events.RunStarting += (RunStartingEventArgs e) =>
            {
                UpdateViewCommands();

                _view.RunSummary.Text = null;
            };

            _model.Events.RunFinished += (TestResultEventArgs e) =>
            {
                UpdateViewCommands();

                ResultSummary summary = ResultSummaryCreator.FromResultNode(e.Result);
                _view.RunSummary.Text = string.Format(
                    "Passed: {0}   Failed: {1}   Errors: {2}   Inconclusive: {3}   Invalid: {4}   Ignored: {5}   Skipped: {6}   Time: {7}",
                    summary.PassCount, summary.FailedCount, summary.ErrorCount, summary.InconclusiveCount, summary.InvalidCount, summary.IgnoreCount, summary.SkipCount, summary.Duration);

                if (summary.RunCount == 0)
                {
                }

                //string resultPath = Path.Combine(TestProject.BasePath, "TestResult.xml");
                // TODO: Use Work Directory
                string resultPath = "TestResult.xml";
                _model.SaveResults(resultPath);
                //try
                //{
                //    _model.SaveResults(resultPath);
                //    //log.Debug("Saved result to {0}", resultPath);
                //}
                //catch (Exception ex)
                //{
                //    //log.Warning("Unable to save result to {0}\n{1}", resultPath, ex.ToString());
                //}

                //if (e.Result.Outcome.Status == TestStatus.Failed)
                //    _view.Activate();
            };

            _settings.Changed += (s, e) =>
            {
                if (e.SettingName == "Gui.Options.DisplayFormat")
                {
                    InitializeDisplay();
                }
            };

            _model.Events.UnhandledException += (UnhandledExceptionEventArgs e) =>
            {
                var display = new MessageDisplay("TestCentric - Internal Error");
                display.Error($"{e.Message}\n\n{e.StackTrace}");
            };

            #endregion

            #region View Events

            _view.Load += (s, e) =>
            {
                InitializeDisplay(_settings.Gui.DisplayFormat);

                var settings = _model.PackageOverrides;
                if (_options.ProcessModel != null)
                {
                    _view.ProcessModel.SelectedItem = _options.ProcessModel;
                }
                if (_options.DomainUsage != null)
                {
                    _view.DomainUsage.SelectedItem = _options.DomainUsage;
                }
                if (_options.MaxAgents >= 0)
                {
                    _model.Services.UserSettings.Engine.Agents = _options.MaxAgents;
                }
                _view.RunAsX86.Checked = _options.RunAsX86;
            };

            _view.Shown += (s, e) =>
            {
                Application.DoEvents();

                // Load test specified on command line or
                // the most recent one if options call for it
                if (_options.InputFiles.Count != 0)
                {
                    LoadTests(_options.InputFiles);
                }
                else if (_settings.Gui.LoadLastProject && !_options.NoLoad)
                {
                    foreach (string entry in _recentFiles.Entries)
                    {
                        if (entry != null && File.Exists(entry))
                        {
                            LoadTests(entry);
                            break;
                        }
                    }
                }

                //if ( guiOptions.include != null || guiOptions.exclude != null)
                //{
                //    testTree.ClearSelectedCategories();
                //    bool exclude = guiOptions.include == null;
                //    string[] categories = exclude
                //        ? guiOptions.exclude.Split(',')
                //        : guiOptions.include.Split(',');
                //    if ( categories.Length > 0 )
                //        testTree.SelectCategories( categories, exclude );
                //}

                // Run loaded test automatically if called for
                if (_model.IsPackageLoaded && _options.RunAllTests)
                {
                    RunAllTests();
                }
            };

            _view.Move += (s, e) =>
            {
                if (!_view.Maximized)
                {
                    var location = _view.Location;

                    switch (_view.DisplayFormat.SelectedItem)
                    {
                    case "Full":
                    default:
                        _settings.Gui.MainForm.Location  = location;
                        _settings.Gui.MainForm.Maximized = false;
                        break;

                    case "Mini":
                        _settings.Gui.MiniForm.Location  = location;
                        _settings.Gui.MiniForm.Maximized = false;
                        break;
                    }
                }
            };

            _view.Resize += (s, e) =>
            {
                if (!_view.Maximized)
                {
                    if (_view.DisplayFormat.SelectedItem == "Full")
                    {
                        _settings.Gui.MainForm.Size = _view.Size;
                    }
                    else
                    {
                        _settings.Gui.MiniForm.Size = _view.Size;
                    }
                }
            };

            _view.SplitterPositionChanged += (s, e) =>
            {
                _settings.Gui.MainForm.SplitPosition = _view.SplitterPosition;
            };

            _view.FormClosing += (s, e) =>
            {
                if (_model.IsPackageLoaded)
                {
                    if (_model.IsTestRunning)
                    {
                        DialogResult dialogResult = _view.MessageDisplay.Ask(
                            "A test is running, do you want to stop the test and exit?");

                        if (dialogResult == DialogResult.No)
                        {
                            e.Cancel = true;
                            return;
                        }

                        _model.CancelTestRun(true);
                    }

                    if (CloseProject() == DialogResult.Cancel)
                    {
                        e.Cancel = true;
                    }
                }
            };

            _view.RunButton.Execute  += () => RunSelectedTests();
            _view.StopButton.Execute += () => CancelRun();

            _view.FileMenu.Popup += () =>
            {
                bool isPackageLoaded = _model.IsPackageLoaded;
                bool isTestRunning   = _model.IsTestRunning;

                _view.OpenCommand.Enabled  = !isTestRunning;
                _view.CloseCommand.Enabled = isPackageLoaded && !isTestRunning;

                _view.ReloadTestsCommand.Enabled = isPackageLoaded && !isTestRunning;

                var frameworks  = _model.AvailableRuntimes;
                var runtimeMenu = _view.RuntimeMenu;

                runtimeMenu.Visible = frameworks.Count > 1;

                if (runtimeMenu.Visible && runtimeMenu.Enabled && runtimeMenu.MenuItems.Count == 0)
                {
                    var defaultMenuItem = new MenuItem("Default");
                    defaultMenuItem.Name    = "defaultMenuItem";
                    defaultMenuItem.Tag     = "DEFAULT";
                    defaultMenuItem.Checked = true;

                    runtimeMenu.MenuItems.Add(defaultMenuItem);

                    // TODO: Disable selections that are not supported for the target?
                    foreach (IRuntimeFramework framework in frameworks)
                    {
                        MenuItem item = new MenuItem(framework.DisplayName);
                        item.Tag = framework.Id;
                        runtimeMenu.MenuItems.Add(item);
                    }

                    _view.SelectedRuntime.Refresh();
                }

                _view.RecentFilesMenu.Enabled = !isTestRunning;

                //if (!isTestRunning)
                //{
                //    _recentProjectsMenuHandler.Load();
                //}
            };

            _view.OpenCommand.Execute         += () => OpenProject();
            _view.CloseCommand.Execute        += () => CloseProject();
            _view.AddTestFilesCommand.Execute += () => AddTestFiles();
            _view.ReloadTestsCommand.Execute  += () => ReloadTests();

            _view.SelectedRuntime.SelectionChanged += () =>
            {
                ChangePackageSettingAndReload(EnginePackageSettings.RuntimeFramework, _view.SelectedRuntime.SelectedItem);
            };

            _view.ProcessModel.SelectionChanged += () =>
            {
                ChangePackageSettingAndReload(EnginePackageSettings.ProcessModel, _view.ProcessModel.SelectedItem);
            };

            _view.DomainUsage.SelectionChanged += () =>
            {
                ChangePackageSettingAndReload(EnginePackageSettings.DomainUsage, _view.DomainUsage.SelectedItem);
            };

            _view.RunAsX86.CheckedChanged += () =>
            {
                var key = EnginePackageSettings.RunAsX86;
                if (_view.RunAsX86.Checked)
                {
                    ChangePackageSettingAndReload(key, true);
                }
                else
                {
                    ChangePackageSettingAndReload(key, null);
                }
            };

            _view.RecentFilesMenu.Popup += () =>
            {
                var menuItems = _view.RecentFilesMenu.MenuItems;
                // Test for null, in case we are running tests with a mock
                if (menuItems == null)
                {
                    return;
                }

                menuItems.Clear();
                int num = 0;
                foreach (string entry in _model.Services.RecentFiles.Entries)
                {
                    var menuText = string.Format("{0} {1}", ++num, entry);
                    var menuItem = new MenuItem(menuText);
                    menuItem.Click += (sender, ea) =>
                    {
                        string path = ((MenuItem)sender).Text.Substring(2);
                        _model.LoadTests(new[] { path });
                    };
                    menuItems.Add(menuItem);
                    if (num >= _settings.Gui.RecentProjects.MaxFiles)
                    {
                        break;
                    }
                }
            };

            _view.ExitCommand.Execute += () => _view.Close();

            _view.DisplayFormat.SelectionChanged += () =>
            {
                _settings.Gui.DisplayFormat = _view.DisplayFormat.SelectedItem;
                InitializeDisplay(_view.DisplayFormat.SelectedItem);
            };

            _view.IncreaseFontCommand.Execute += () =>
            {
                applyFont(IncreaseFont(_settings.Gui.Font));
            };

            _view.DecreaseFontCommand.Execute += () =>
            {
                applyFont(DecreaseFont(_settings.Gui.Font));
            };

            _view.ChangeFontCommand.Execute += () =>
            {
                Font currentFont = _settings.Gui.Font;
                Font newFont     = _view.DialogManager.SelectFont(currentFont);
                if (newFont != _settings.Gui.Font)
                {
                    applyFont(newFont);
                }
            };

            _view.DialogManager.ApplyFont += (font) => applyFont(font);

            _view.RestoreFontCommand.Execute += () =>
            {
                applyFont(Form.DefaultFont);
            };

            _view.IncreaseFixedFontCommand.Execute += () =>
            {
                _settings.Gui.FixedFont = IncreaseFont(_settings.Gui.FixedFont);
            };

            _view.DecreaseFixedFontCommand.Execute += () =>
            {
                _settings.Gui.FixedFont = DecreaseFont(_settings.Gui.FixedFont);
            };

            _view.RestoreFixedFontCommand.Execute += () =>
            {
                _settings.Gui.FixedFont = new Font(FontFamily.GenericMonospace, 8.0f);
            };

            _view.StatusBarCommand.CheckedChanged += () =>
            {
                _view.StatusBarView.Visible = _view.StatusBarCommand.Checked;
            };

            _view.RunAllCommand.Execute      += () => RunAllTests();
            _view.RunSelectedCommand.Execute += () => RunSelectedTests();
            _view.RunFailedCommand.Execute   += () => RunFailedTests();

            _view.StopRunCommand.Execute        += () => CancelRun();
            _view.TestParametersCommand.Execute += () =>
            {
                using (var dlg = new TestParametersDialog())
                {
                    dlg.Font          = _settings.Gui.Font;
                    dlg.StartPosition = FormStartPosition.CenterParent;

                    if (_model.PackageOverrides.ContainsKey("TestParametersDictionary"))
                    {
                        var testParms = _model.PackageOverrides["TestParametersDictionary"] as IDictionary <string, string>;
                        foreach (string key in testParms.Keys)
                        {
                            dlg.Parameters.Add(key, testParms[key]);
                        }
                    }

                    if (dlg.ShowDialog(_view as IWin32Window) == DialogResult.OK)
                    {
                        ChangePackageSettingAndReload("TestParametersDictionary", dlg.Parameters);
                    }
                }
            };

            _view.ToolsMenu.Popup += () =>
            {
                _view.SaveResultsAsMenu.MenuItems.Clear();

                foreach (string format in _resultFormats)
                {
                    MenuItem formatItem = new MenuItem(format);
                    formatItem.Click += (s, e) => SaveResults(format);
                    _view.SaveResultsAsMenu.MenuItems.Add(formatItem);
                }
            };

            _view.SaveResultsCommand.Execute += () => SaveResults();

            _view.OpenWorkDirectoryCommand.Execute += () => System.Diagnostics.Process.Start(_model.WorkDirectory);

            _view.ExtensionsCommand.Execute += () =>
            {
                using (var extensionsDialog = new ExtensionDialog(_model.Services.ExtensionService))
                {
                    extensionsDialog.Font = _settings.Gui.Font;
                    extensionsDialog.ShowDialog();
                }
            };

            _view.SettingsCommand.Execute += () =>
            {
                SettingsDialog.Display(this, _model);
            };

            _view.TestCentricHelpCommand.Execute += () =>
            {
                _view.MessageDisplay.Error("Not Yet Implemented");
            };

            _view.NUnitHelpCommand.Execute += () =>
            {
                System.Diagnostics.Process.Start("https://github.com/nunit/docs/wiki/NUnit-Documentation");
            };

            _view.AboutCommand.Execute += () =>
            {
                using (AboutBox aboutBox = new AboutBox())
                {
                    aboutBox.ShowDialog();
                }
            };

            _view.ResultTabs.SelectionChanged += () =>
            {
                _settings.Gui.SelectedTab = _view.ResultTabs.SelectedIndex;
            };

            #endregion
        }
コード例 #27
0
 private void _E_FM_ms_Main_SpaceMap_Help_About_Click(object sender, EventArgs e)
 {
     using (AboutBox ab = new AboutBox())
     {
         ab.ShowDialog();
     }
 }
コード例 #28
0
ファイル: Form1.cs プロジェクト: jnykiel/TestLink2Excel
        /// <summary>
        /// Opens AboutBox dialog.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AboutToolStripMenuItemClick(object sender, EventArgs e)
        {
            AboutBox about = new AboutBox();

            about.ShowDialog();
        }
コード例 #29
0
ファイル: Commands.cs プロジェクト: BigBadJock/Dafuscator
        private static void About(object sender, ExecutedRoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)sender;

            AboutBox about = new AboutBox(mainWindow);
            about.ShowDialog();
        }
コード例 #30
0
ファイル: f0t0Box.cs プロジェクト: dansam100/f0t0vi3w
        void menuItemAboutDetail_Click(object sender, System.EventArgs e)
        {
            AboutBox aboutBox = new AboutBox();

            aboutBox.ShowDialog(this);
        }
コード例 #31
0
ファイル: MosaicWindow.cs プロジェクト: atdgroup/Mosaic
        private void OnAboutMenuItemClicked(object sender, EventArgs e)
        {
            AboutBox aboutBox = new AboutBox();

            aboutBox.ShowDialog();
        }
コード例 #32
0
        /// <summary>
        /// Open an About Box dialog.
        /// </summary>
        public void OpenAboutBox()
        {
            var dialog = new AboutBox();

            dialog.ShowDialog();
        }
コード例 #33
0
ファイル: MainForm.cs プロジェクト: JoostZ/astrocaptureserver
 private void btnAbout_Click(object sender, EventArgs e)
 {
     AboutBox dialog = new AboutBox();
     dialog.ShowDialog();
 }
コード例 #34
0
        protected override void Execute()
        {
            var about = new AboutBox();

            about.ShowDialog();
        }
コード例 #35
0
ファイル: StreamerList.cs プロジェクト: mobilipia/Win7
 /// <summary>
 /// 
 /// </summary>
 /// <param name="Sender"></param>
 /// <param name="e"></param>
 private void about(object Sender, EventArgs e) {
     // var results = MessageBox.Show("FXPAL DisplayCast Player (v " + Shared.DisplayCastGlobals.DISPLAYCAST_VERSION.ToString() + "))", "FXPAL DisplayCast Player", MessageBoxButtons.OK);
     AboutBox about = new AboutBox();
     var results = about.ShowDialog();
 }
コード例 #36
0
ファイル: CASKonverter.cs プロジェクト: matzeder/CasKonverter
        private void tsB_Help_Click(object sender, EventArgs e)
        {
            AboutBox objAboutBox = new AboutBox();

            objAboutBox.ShowDialog();
        }
コード例 #37
0
 private void menuItemAbout_Click(object sender, RoutedEventArgs e)
 {
     AboutBox about = new AboutBox(this);
     about.ShowDialog();
 }
コード例 #38
0
        private void about_Click(object sender, RoutedEventArgs e)
        {
            AboutBox about = new AboutBox(this);

            about.ShowDialog();
        }
コード例 #39
0
ファイル: MainForm.cs プロジェクト: dalinhuang/appcollection
 private void ����VJK3GToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox abt = new AboutBox();
     abt.ShowDialog(this);
 }
コード例 #40
0
        private void mnuHelp_About_Click(object sender, EventArgs e)
        {
            var dlg = new AboutBox(mRoot != null ? mRoot.ApplicationName : "Python", Resources.python_powered_h_140x182, Assembly.GetExecutingAssembly());

            dlg.ShowDialog();
        }
コード例 #41
0
ファイル: MainWindow.xaml.cs プロジェクト: abdojobs/gestadh45
		private void ShowAboutBox() {
			var about = new AboutBox(this);
			about.ShowDialog();
		}
コード例 #42
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutBox ab = new AboutBox();

            ab.ShowDialog(this);
        }
コード例 #43
0
ファイル: About.cs プロジェクト: lucaslra/SPM
        void About_Click(object sender, RoutedEventArgs e)
        {
            AboutBox dialog = new AboutBox(Application.Current.MainWindow);

            dialog.ShowDialog();
        }
コード例 #44
0
ファイル: MainForm.cs プロジェクト: danowar2k/seriesrenamer
 private void showAboutBox()
 {
     AboutBox ab = new AboutBox();
     ab.AppMoreInfo += Environment.NewLine;
     ab.AppMoreInfo += "Using:" + Environment.NewLine;
     ab.AppMoreInfo += "ObjectListView " + "http://www.codeproject.com/KB/list/ObjectListView.aspx" + Environment.NewLine;
     ab.AppMoreInfo += "About Box " + "http://www.codeproject.com/KB/vb/aboutbox.aspx" + Environment.NewLine;
     ab.AppMoreInfo += "Unrar.dll " + "http://www.rarlab.com" + Environment.NewLine;
     ab.AppMoreInfo += "SharpZipLib " + "http://www.icsharpcode.net/OpenSource/SharpZipLib/" + Environment.NewLine;
     ab.ShowDialog(this);
 }
コード例 #45
0
ファイル: MainWindow.xaml.cs プロジェクト: Drakulix/TeknoMW3
 /// <summary>
 /// The btn about click.
 /// </summary>
 /// <param name="sender">
 /// The sender. 
 /// </param>
 /// <param name="e">
 /// The e. 
 /// </param>
 private void BtnAboutClick(object sender, RoutedEventArgs e)
 {
     var aboutBox = new AboutBox(this);
     aboutBox.ShowDialog();
 }
コード例 #46
0
ファイル: Form1.cs プロジェクト: slawer/skc
 private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox frm = new AboutBox();
     frm.ShowDialog(this);
 }
コード例 #47
0
ファイル: MainForm.cs プロジェクト: peterchen/CodeBuilder
 private void helpAboutMenuItem_Click(object sender, EventArgs e)
 {
     using (AboutBox aboutBox = new AboutBox())
     {
         aboutBox.ShowDialog();
     }
 }
コード例 #48
0
ファイル: TestSuiteView.cs プロジェクト: Waltervondehans/NBi
 private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var window = new AboutBox();
     window.ShowDialog(this);
 }
コード例 #49
0
ファイル: MainForm.cs プロジェクト: dalinhuang/appcollection
 private void aboutButton_Click(object sender, EventArgs e)
 {
     AboutBox about = new AboutBox();
     about.ShowDialog();
     about.Dispose();
 }
コード例 #50
0
        private void ShowAboutBoxHandler(object sender, ExecutedRoutedEventArgs e)
        {
            AboutBox form = new AboutBox();

            form.ShowDialog();
        }