public void OnDeleteCommandsRequested(Command[] commands) { if (commands == null) { throw new ArgumentNullException("commands"); } if (!mainPresenter.ForwardYesNoQuestion((string)Application.Current.FindResource(QUESTION_SURE_TO_DELETE_COMMANDS))) { return; } foreach (Command command in commands) { mainPresenter.Model.RemoveCommand(ActiveProfile, command); } view.ActiveProfileChanged(ActiveProfile); }
public void RemoveIconsRequested(LinkedList <Blast> blasts) { if (blasts == null) { throw new ArgumentNullException("blasts"); } if (!mainPresenter.ForwardYesNoQuestion((string)Application.Current.FindResource(QUESTION_SURE_TO_REMOVE_ICONS))) { return; } MadCatzProfile activeProfile = mainPresenter.ActiveProfile; foreach (Blast blast in blasts) { mainPresenter.Model.RemoveIcon(activeProfile, blast); } view.ActiveProfileChanged(activeProfile); }