コード例 #1
0
        public void Add()
        {
            var cmd = new CommandViewModel(new Command());

            Commands.Add(cmd);
            SelectedCommand = cmd;
        }
コード例 #2
0
 public void Delete(CommandViewModel cmdToDelete)
 {
     if (cmdToDelete != null)
     {
         Commands.Remove(cmdToDelete);
         SelectedCommand = null;
     }
 }