Esempio n. 1
0
        private void EditEventButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (_viewModel.SelectedEvent == null)
            {
                _viewModel.ShowDialog( "Event not selected" );
                return;
            }

            var id = _viewModel.SelectedEvent.ID;
            var dialog = new EventView(id);
            dialog.Show();
        }
Esempio n. 2
0
 private void NewEventButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     var dialog = new EventView(0);
     dialog.Show();
 }