Пример #1
0
        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
 public UpdatesChecker(MainWindow mainWindow)
 {
     __MainWindow = mainWindow;
 }
Пример #4
0
        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;
        }