Exemple #1
0
        private void appointmentButton_Click(object sender, EventArgs e)
        {
            AppointmentForm appointmentForm = new AppointmentForm(operation);

            appointmentForm.Show();
            this.Hide();
        }
 //Metoda dodająca nowy element do bazy
 private void AddNewButtonClick(object sender, RoutedEventArgs e)
 {
     if (TabsComboBox.SelectedIndex == 1)
     {
         PatientForm PatientWindow = new PatientForm();
         PatientWindow.DataChanged += PatientWindow_DataChanged;
         PatientWindow.Show();
     }
     else if (TabsComboBox.SelectedIndex == 0)
     {
         AppointmentForm AppointmentTab = new AppointmentForm();
         AppointmentTab.DataChanged += AppoinmentWindow_DataChanged;
         AppointmentTab.Show();
         TodayAppointmentsButton.Content = "Dzisiejsze wizyty";
     }
 }