public void LaunchSelected() { if (SelectedLaunchable == null) { return; } var selectedLaunchables = Launchables.Where(x => x.IsSelected == true); foreach (var launchable in selectedLaunchables) { launchable.Launch(); } }
public void DeleteSelectedLaunchable() { if (SelectedLaunchable == null) { return; } var selectedLaunchables = Launchables.Where(x => x.IsSelected == true).ToArray(); foreach (var launchable in selectedLaunchables) { Launchables.Remove(launchable); } SelectedLaunchable = null; }