Ejemplo n.º 1
0
        private void EditEventTypeToDoCommandExecuted(EventTypeToDoModel eventTypeToDoModel)
        {
            RaisePropertyChanged("DisableParentWindow");

            var addDefaultEventTypeToDoview = new AddDefaultEventTypeTODOView(SelectedObject as EventTypeModel, eventTypeToDoModel);

            addDefaultEventTypeToDoview.ShowDialog();

            RaisePropertyChanged("EnableParentWindow");

            if (addDefaultEventTypeToDoview.DialogResult != null && addDefaultEventTypeToDoview.DialogResult == true)
            {
            }
        }
Ejemplo n.º 2
0
        private void AddDefaultReminderCommandExecuted()
        {
            RaisePropertyChanged("DisableParentWindow");
            var addDefaultReminder = new AddDefaultEventTypeTODOView(SelectedObject as EventTypeModel);

            addDefaultReminder.ShowDialog();

            RaisePropertyChanged("EnableParentWindow");

            if (addDefaultReminder.DialogResult != null && addDefaultReminder.DialogResult == true)
            {
                var viewmodel = addDefaultReminder.ViewModel as AddDefaultEventTypeTODOViewModel;
                SelectedEventType.EventTypeToDos.Add(viewmodel.EventTypeToDo);
            }
        }