Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }