private void OnBrowse() { OpenFileDialog ofd = new OpenFileDialog() { Filter = "Launch Configurations (*.json)|*.json|All Files (*.*)|(*.*)" }; if (ofd.ShowDialog() == true) { LaunchConfiguration config = this.model.CreateUserLaunchConfiguration(ofd.FileName); LaunchConfigurationViewModel configVM = new LaunchConfigurationViewModel(this, config); this.LaunchConfigs.Add(configVM); this.SelectedConfig = configVM; } }
internal void DeleteConfig(LaunchConfigurationViewModel config) { this.LaunchConfigs.Remove(config); this.model.RemoveUserLaunchConfiguration(config.FullPath); }