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

            settings      = new Settings();
            mainFormLogic = new MainFormLogic();
            LoadSettings();
        }
예제 #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();
        }