public void Add() { var cmd = new CommandViewModel(new Command()); Commands.Add(cmd); SelectedCommand = cmd; }
public void Delete(CommandViewModel cmdToDelete) { if (cmdToDelete != null) { Commands.Remove(cmdToDelete); SelectedCommand = null; } }