public MainWindow(RepositoryInfoManager manager) { _manager = manager; InitializeComponent(); DataContext = _manager.ViewModel; RepositoryNameTextBox.Focus(); }
private void OnApplicationStartup(object sender, StartupEventArgs e) { RepositoryInfoManager manager = new RepositoryInfoManager(); MainWindow = new MainWindow(manager); if (MainWindow.ShowDialog() == true) { RepositoryGenerator.Generate(manager.Model); } }