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

            item.CommandRemove += onCommandRemoval;

            CommandsCollection.Add(item);
        }
コード例 #2
0
 private static void onCommandRemove(ProgramCommandListItemViewModel item)
 {
     item.CommandRemove?.Invoke(item, new ProgramCommandItemEventArgs(item.command));
 }