Esempio n. 1
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext   = this;
     mainFormLogic = new MainFormLogic();
     commonLogic   = new CommonLogic();
     MainWindowName.TextboxDestination.Focus();
 }
Esempio n. 2
0
        public SettingsWindow()
        {
            InitializeComponent();
            DataContext = this;

            settings      = new Settings();
            mainFormLogic = new MainFormLogic();
            LoadSettings();
        }
Esempio n. 3
0
        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();
        }