public MainWindow() { InitializeComponent(); DataContext = this; mainFormLogic = new MainFormLogic(); commonLogic = new CommonLogic(); MainWindowName.TextboxDestination.Focus(); }
public SettingsWindow() { InitializeComponent(); DataContext = this; settings = new Settings(); mainFormLogic = new MainFormLogic(); LoadSettings(); }
void App_Startup(object sender, StartupEventArgs e) { var mainWindow = new MainWindow(); if (e.Args.Any()) { MainFormLogic mainFormLogic = new MainFormLogic(); mainFormLogic.HandleNewDestination(mainWindow, e.Args[0]); } mainWindow.Show(); }