public void Show(VSEdition template, Window parent) { _label.Text = "VS2017 " + template.Name; _batch.Text = "vs_" + template.Name + ".bat"; template.GenerateCLIs(); batchproduct = template.Name; batchtemplate = template.GeneratedInstall; Owner = parent; ShowDialog(); }
public MainWindow() { InitializeComponent(); ActiveEdition = editions[0]; ActiveEdition.LoadJSON(); RebuildWorkload(); PrintFetchStamp(); _ed0.IsChecked = true; _lang.ItemsSource = languages; _lang.SelectedItem = "en-US"; }
private void _edition_change(object sender, RoutedEventArgs e) { if (_ed0.IsChecked == true) { ActiveEdition = editions[0]; } if (_ed1.IsChecked == true) { ActiveEdition = editions[1]; } if (_ed2.IsChecked == true) { ActiveEdition = editions[2]; } ActiveEdition.LoadJSON(); RebuildWorkload(); PrintFetchStamp(); BuildCLIOut(); }