Наследование: System.Windows.Window
Пример #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Create empty model
            var viewModel = new MainViewModel("", ConfigHelper.PrimaryDatabase, ConfigHelper.SecondaryDatabase, ConfigHelper.Username, ConfigHelper.Password, ConfigHelper.BatchSize);

            // Display the Main Form
            var main = new MainWindow()
            {
                DataContext = viewModel
            };

            main.Show();
        }
Пример #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // Get Values
            var primaryDatabase = ConfigHelper.PrimaryDatabase;
            var secondaryDatabase = ConfigHelper.SecondaryDatabase;
            var username = ConfigHelper.Username;
            var password = ConfigHelper.Password;
            var batchSize = ConfigHelper.BatchSize;

            // Create empty model
            var viewModel = new MainViewModel("", primaryDatabase, secondaryDatabase, username, password, batchSize);

            // Display the Main Form
            var main = new MainWindow()
            {
                DataContext = viewModel,
            };

            main.Show();
        }