Пример #1
0
 public MainWindow(RepositoryInfoManager manager)
 {
     _manager = manager;
     InitializeComponent();
     DataContext = _manager.ViewModel;
     RepositoryNameTextBox.Focus();
 }
 public NewRepositoryDialog(RepositoryGeneratorParameters viewModel)
 {
     InitializeComponent();
     PreviewKeyDown           += OnPreviewKeyDown;
     viewModel.RepositoryName  = VSSettings.Default.RepositoryName;
     viewModel.ProjectName     = VSSettings.Default.ProjectName;
     viewModel.SolutionName    = VSSettings.Default.SolutionName;
     viewModel.RootNamespace   = VSSettings.Default.RootNamespace;
     viewModel.Description     = VSSettings.Default.Description;
     viewModel.Output          = VSSettings.Default.Output;
     viewModel.TargetFramework = VSSettings.Default.TargetFramework;
     viewModel.SdkXmlLocation  = VSSettings.Default.SdkXmlElementLocation;
     viewModel.RepositoryStyle = VSSettings.Default.RepositoryStyle;
     MainGrid.DataContext      = viewModel;
     RepositoryNameTextBox.Focus();
 }