public MainWindow(RepositoryInfoManager manager)
 {
     _manager = manager;
     InitializeComponent();
     DataContext = _manager.ViewModel;
     RepositoryNameTextBox.Focus();
 }
Exemple #2
0
        private void OnApplicationStartup(object sender, StartupEventArgs e)
        {
            RepositoryInfoManager manager = new RepositoryInfoManager();

            MainWindow = new MainWindow(manager);
            if (MainWindow.ShowDialog() == true)
            {
                RepositoryGenerator.Generate(manager.Model);
            }
        }