Beispiel #1
0
        private void onProgramItemRemoval(object sender, ProgramListItemEventArgs e)
        {
            if (programService.CanRemoveProgram(e.Item.Id) == false)
            {
                notificationService.ShowWarningMessageBox("Cannot remove the program. It is probably actively used by some robot.");
                return;
            }

            Programs.Remove(e.Item);
            programService.RemoveProgram(e.Item.Id);
            ProgramRemove?.Invoke(this, e);
        }
Beispiel #2
0
 private void onProgramItemSelect(object sender, ProgramListItemEventArgs e)
 {
     ProgramSelect?.Invoke(this, e);
 }