/// <summary> /// Show the SHFB About box /// </summary> /// <param name="sender">The sender of the event</param> /// <param name="e">The event arguments</param> private void lnkSHFBInfo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (AboutDlg dlg = new AboutDlg()) { dlg.ShowDialog(); } }
public static void ShowAbout() { AboutDlg AboutDlg = new AboutDlg(); AboutDlg.Icon = Resources.logo; AboutDlg.ShowDialog(); }
public static void ShowAbout() { AboutDlg AboutDlg = new AboutDlg(); AboutDlg.Icon = DWGLib.Properties.Resources.logo; AboutDlg.ShowDialog(); }
public override void Setup() { base.Setup(); WinFormsAppHost.ConfigureBootstrap(false); fDialog = new AboutDlg(); fDialog.Show(); }
protected override void DoTest() { // Show About dialog. RunDlg <AboutDlg>(() => { using (var about = new AboutDlg()) { about.ShowDialog(Program.MainWindow); } }, a => a.Close()); // Show Alert link dialog. RunDlg <AlertLinkDlg>( () => WebHelpers.ShowLinkFailure(Program.MainWindow, "http://skyline.maccosslab.org"), d => d.Close()); // Show shutdown report dialog Assert.IsFalse(ReportShutdownDlg.HadUnexpectedShutdown(true)); try { throw new IOException("Something to report"); } catch (Exception x) { ReportShutdownDlg.SaveExceptionFile(x, true); } Assert.IsTrue(ReportShutdownDlg.HadUnexpectedShutdown(true)); RunDlg <ReportShutdownDlg>(() => { using (var reportShutdownDlg = new ReportShutdownDlg()) { reportShutdownDlg.ShowDialog(SkylineWindow); } }, d => d.Close()); Assert.IsFalse(ReportShutdownDlg.HadUnexpectedShutdown(true)); // Show upgrade dialog RunDlg <UpgradeLicenseDlg>(() => { using (var dlg = new UpgradeLicenseDlg(Program.LICENSE_VERSION_CURRENT - 1)) { dlg.ShowDialog(SkylineWindow); } }, d => d.Close()); // Show import retry dialog (requires some extra work to avoid blocking the counting) var dlgCount = ShowDialog <ImportResultsRetryCountdownDlg>(ShowImportResultsRetryCountdownDlg); // Thread.Sleep(20*1000); OkDialog(dlgCount, dlgCount.Cancel); }
protected override void DoTest() { // Show About dialog. using (var about = new AboutDlg()) { RunDlg <AboutDlg>( () => about.ShowDialog(Program.MainWindow), a => a.Close()); } // Show Alert link dialog. RunDlg <AlertLinkDlg>( () => WebHelpers.ShowLinkFailure(Program.MainWindow, "http://skyline.maccosslab.org"), d => d.Close()); // Show shutdown report dialog Assert.IsFalse(ReportShutdownDlg.HadUnexpectedShutdown(true)); try { throw new IOException("Something to report"); } catch (Exception x) { ReportShutdownDlg.SaveExceptionFile(x, true); } Assert.IsTrue(ReportShutdownDlg.HadUnexpectedShutdown(true)); using (var reportShutdownDlg = new ReportShutdownDlg()) { RunDlg <ReportShutdownDlg>( () => reportShutdownDlg.ShowDialog(), d => d.Close()); } Assert.IsFalse(ReportShutdownDlg.HadUnexpectedShutdown(true)); // Show upgrade dialog using (var dlg = new UpgradeDlg(Program.LICENSE_VERSION_CURRENT - 1)) { RunDlg <UpgradeDlg>( () => dlg.ShowDialog(), d => d.Close()); } }
private void AboutCommand_Executed(object sender, ExecutedRoutedEventArgs e) { AboutDlg aboutdlg = new AboutDlg(); ShowVMSDlg(aboutdlg); }
public void ShowAbout() { using (var dlg = new AboutDlg()) { dlg.ShowDialog(); } }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); m_Software.Name = "PAnalyzer"; m_Software.Version = "1.1"; m_Software.License = "Released under the GNU General Public License"; m_Software.Copyright = "(c) 2010-2014 by UPV/EHU"; m_Software.Contact = "*****@*****.**"; m_Software.Customizations = "No customizations"; m_Software.Url = "https://code.google.com/p/ehu-bio/wiki/PAnalyzer"; m_dlgOpen = new Gtk.FileChooserDialog( "Select data file ...", this, FileChooserAction.Open, Stock.Open, ResponseType.Ok, Stock.Cancel, ResponseType.Cancel); m_dlgOpen.Filter = new FileFilter(); m_dlgOpen.Filter.AddPattern("*.xml"); m_dlgOpen.Filter.AddPattern("*.mzid"); m_dlgOpen.SelectMultiple = true; m_LastDir = "."; m_dlgSave = new Gtk.FileChooserDialog( "Select data file ...", this, FileChooserAction.Save, Stock.SaveAs, ResponseType.Ok, Stock.Cancel, ResponseType.Cancel); m_dlgSave.Filter = new FileFilter(); m_dlgSave.Filter.AddPattern("*.csv"); m_dlgSave.Filter.AddPattern("*.mzid"); ProteinsView.AppendColumn("ID", new CellRendererText(), "text", 0); ProteinsView.AppendColumn("Entry", new CellRendererText(), "text", 1); ProteinsView.AppendColumn("Accession", new CellRendererText(), "text", 2); ProteinsView.AppendColumn("Evidence", new CellRendererText(), "text", 3); ProteinsView.AppendColumn("Description", new CellRendererText(), "text", 4); ProteinsView.CursorChanged += OnProteinSelected; PeptidesView.AppendColumn("ID", new CellRendererText(), "text", 0); PeptidesView.AppendColumn("Confidence", new CellRendererText(), "text", 1); PeptidesView.AppendColumn("Relation", new CellRendererText(), "text", 2); PeptidesView.AppendColumn("Sequence", new CellRendererText(), "text", 3); PeptidesView.CursorChanged += OnPeptideSelected; m_dlgPrefs = new PreferencesDlg(); m_dlgPrefs.PlgsThreshold = Peptide.ConfidenceType.Yellow; m_dlgPrefs.SeqThreshold = Peptide.ConfidenceType.Yellow; m_dlgPrefs.XTandemTh = 0.05; m_dlgPrefs.PassTh = true; m_dlgPrefs.RankTh = 0; m_dlgPrefs.Runs = 1; m_dlgPrefs.Hide(); m_dlgAbout = new AboutDlg(); m_dlgAbout.Version = m_Software.Name + " v" + m_Software.Version; m_dlgAbout.License = m_Software.License; m_dlgAbout.Copyright = m_Software.Copyright; m_dlgAbout.Hide(); /*Log.Text = "".PadRight(80,'*'); * WriteLog( m_Version ); * WriteLog( m_License ); * WriteLog( m_Copyright ); * WriteLog( "\n".PadLeft(80,'*') );*/ //preferencesAction.Sensitive = true; dialogInfoAction.Sensitive = true; State = States.EMPTY; m_Mapper = null; m_nFiles = 0; }
public void ShowAboutDialog() { AboutDlg _AboutDlg = new AboutDlg(); AcadApp.ShowModalDialog(AcadApp.MainWindow.Handle, _AboutDlg); }
private void 帮助LToolStripButton_Click(object sender, EventArgs e) { AboutDlg dlg = new AboutDlg(); dlg.Show(); }