protected override void OnStartup(StartupEventArgs e) { var batch = ResizeBatch.FromCommandLine(Console.In, e.Args); // TODO: Add command-line parameters that can be used in lieu of the input page (issue #14) new MainWindow(new MainViewModel(batch, Settings.Default)).Show(); }
protected override void OnStartup(StartupEventArgs e) { var batch = ResizeBatch.FromCommandLine(Console.In, e.Args); // TODO: Add command-line parameters that can be used in lieu of the input page (issue #14) var mainWindow = new MainWindow(new MainViewModel(batch, Settings.Default)); mainWindow.Show(); // Temporary workaround for issue #1273 BecomeForegroundWindow(new System.Windows.Interop.WindowInteropHelper(mainWindow).Handle); }
protected override void OnStartup(StartupEventArgs e) { // Fix for .net 3.1.19 making Image Resizer not adapt to DPI changes. NativeMethods.SetProcessDPIAware(); var batch = ResizeBatch.FromCommandLine(Console.In, e?.Args); // TODO: Add command-line parameters that can be used in lieu of the input page (issue #14) var mainWindow = new MainWindow(new MainViewModel(batch, Settings.Default)); mainWindow.Show(); _themeManager = new ThemeManager(this); // Temporary workaround for issue #1273 BecomeForegroundWindow(new System.Windows.Interop.WindowInteropHelper(mainWindow).Handle); }
protected override void OnStartup(StartupEventArgs e) { var batch = ResizeBatch.FromCommandLine(Console.In, e.Args); new MainWindow(new MainViewModel(batch, Settings.Default)).Show(); }