예제 #1
0
 /// <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();
     }
 }
예제 #2
0
        public static void ShowAbout()
        {
            AboutDlg AboutDlg = new AboutDlg();

            AboutDlg.Icon = Resources.logo;
            AboutDlg.ShowDialog();
        }
예제 #3
0
        public static void ShowAbout()
        {
            AboutDlg AboutDlg = new AboutDlg();

            AboutDlg.Icon = DWGLib.Properties.Resources.logo;
            AboutDlg.ShowDialog();
        }
예제 #4
0
        public override void Setup()
        {
            base.Setup();

            WinFormsAppHost.ConfigureBootstrap(false);

            fDialog = new AboutDlg();
            fDialog.Show();
        }
예제 #5
0
        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);
        }
예제 #6
0
        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());
            }
        }
예제 #7
0
        private void AboutCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            AboutDlg aboutdlg = new AboutDlg();

            ShowVMSDlg(aboutdlg);
        }
예제 #8
0
 public void ShowAbout()
 {
     using (var dlg = new AboutDlg()) {
         dlg.ShowDialog();
     }
 }
예제 #9
0
    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;
    }
예제 #10
0
        public void ShowAboutDialog()
        {
            AboutDlg _AboutDlg = new AboutDlg();

            AcadApp.ShowModalDialog(AcadApp.MainWindow.Handle, _AboutDlg);
        }
예제 #11
0
파일: TCPWave.cs 프로젝트: yc97/MySystem
        private void 帮助LToolStripButton_Click(object sender, EventArgs e)
        {
            AboutDlg dlg = new AboutDlg();

            dlg.Show();
        }