public NewRepositoryDialog()
        {
            var viewModel = new RepositoryGeneratorParameters();

            InitializeComponent();
            PreviewKeyDown      += OnPreviewKeyDown;
            MainGrid.DataContext = viewModel;
        }
 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();
 }