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(); }
public void SetMainWindow(MainWindow mainWindow) { __MainWindow = mainWindow; }
public UpdatesChecker(MainWindow mainWindow) { __MainWindow = mainWindow; }
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; }