예제 #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
        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);
        }
예제 #5
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());
            }
        }
예제 #6
0
 public void ShowAbout()
 {
     using (var dlg = new AboutDlg()) {
         dlg.ShowDialog();
     }
 }