Пример #1
0
        public void LaunchSelected()
        {
            if (SelectedLaunchable == null)
            {
                return;
            }

            var selectedLaunchables = Launchables.Where(x => x.IsSelected == true);

            foreach (var launchable in selectedLaunchables)
            {
                launchable.Launch();
            }
        }
Пример #2
0
        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;
        }