コード例 #1
0
ファイル: app.xaml.cs プロジェクト: fednep/UV-Outliner
        void AppStartup(object sender, StartupEventArgs args)
        {
            if (args.Args.Length > 0)
            {
                if (args.Args[0] == "/noautoload")
                    __NoAutoLoad = true;
                else
                {
                    Properties["FileNameToOpen"] = args.Args[0];
                }
            }

            __ExecutableFile = Environment.GetCommandLineArgs()[0];

            MainWindow mainWindow = new MainWindow();
            mainWindow.Dispatcher.UnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(Dispatcher_UnhandledException);
            mainWindow.Show();
        }
コード例 #2
0
 public void SetMainWindow(MainWindow mainWindow)
 {
     __MainWindow = mainWindow;
 }
コード例 #3
0
ファイル: UpdatesChecker.cs プロジェクト: fednep/UV-Outliner
 public UpdatesChecker(MainWindow mainWindow)
 {
     __MainWindow = mainWindow;
 }
コード例 #4
0
ファイル: SerialKey.cs プロジェクト: fednep/UV-Outliner
        internal static bool ShowReminderIfNecessary(MainWindow parentWnd)
        {
            if (!IsSoftwareRegistered())
            {
                parentWnd.DimBorder.Visibility = Visibility.Visible;
                try
                {
                    wnd_LicenseReminder lRem = new wnd_LicenseReminder();
                    lRem.Owner = parentWnd;
                    return (bool)lRem.ShowDialog();
                }
                finally
                {
                    parentWnd.DimBorder.Visibility = Visibility.Hidden;
                }

            }

            return true;
        }