Пример #1
0
 private void button2_Click(object sender, RoutedEventArgs e)
 {
     if (appointmentsList.SelectedIndex == -1)
     {
         return;
     }
     Appointment a = CalenderApp.Instance.Appointments[appointmentsList.SelectedIndex];
     AppointmentDialog wnd = new AppointmentDialog(a);
     wnd.Title = "Termin bearbeiten";
     wnd.ShowDialog();
 }
Пример #2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     AppointmentDialog wnd = new AppointmentDialog();
     wnd.Title = "Neuen Termin anlegen";
     wnd.ShowDialog();
 }