예제 #1
0
        private void OnSelectActivitiesTypesMessage(SelectActivitiesTypesMessage selectActivitiesTypesMessage)
        {
            var addDlg = new AddActivitiesWindow(selectActivitiesTypesMessage.AvailableActivitiesTypes)
            {
                Owner = this
            };

            selectActivitiesTypesMessage.Execute(addDlg.ShowDialog().GetValueOrDefault()
                                                     ? new SelectActivitiesTypesResult(addDlg.SelectedActivitiesTypes)
                                                     : SelectActivitiesTypesResult.DoNothing);
        }
예제 #2
0
        private void OnSelectActivitiesTypesMessage(SelectActivitiesTypesMessage selectActivitiesTypesMessage)
        {
            var addDlg = new AddActivitiesWindow(selectActivitiesTypesMessage.AvailableActivitiesTypes)
            {
                Owner = this
            };

            selectActivitiesTypesMessage.Execute(addDlg.ShowDialog().GetValueOrDefault()
                                                     ? new SelectActivitiesTypesResult(addDlg.SelectedActivitiesTypes)
                                                     : SelectActivitiesTypesResult.DoNothing);
        }