示例#1
0
        private void addCommandViewModel(IProgramCommand command)
        {
            var item = new ProgramCommandListItemViewModel(command);

            item.CommandRemove += onCommandRemoval;

            CommandsCollection.Add(item);
        }
 private static void onCommandRemove(ProgramCommandListItemViewModel item)
 {
     item.CommandRemove?.Invoke(item, new ProgramCommandItemEventArgs(item.command));
 }