Esempio n. 1
0
        private void MeetingCentersAddBtn_Click(object sender, RoutedEventArgs e)
        {
            ManageMeetingCenterWindow window = new ManageMeetingCenterWindow( );

            window.ShowDialog( );

            if (window.DialogResult.HasValue && (bool)window.DialogResult)
            {
                var values = window.GetMeetingCenterValues( );
                _viewModel.CenterOverview.MeetingCenters.Add(new MeetingCenterModel(values));
            }
        }
Esempio n. 2
0
        private void MeetingCentersEditBtn_Click(object sender, RoutedEventArgs e)
        {
            if (_viewModel.CenterOverview.SelectedMeetingCenter != null)
            {
                ManageMeetingCenterWindow window = new ManageMeetingCenterWindow(_viewModel.CenterOverview.SelectedMeetingCenter);
                window.ShowDialog( );

                if (window.DialogResult.HasValue && (bool)window.DialogResult)
                {
                    var values = window.GetMeetingCenterValues( );
                    _viewModel.CenterOverview.SelectedMeetingCenter.SetData(values);
                }
            }
        }