Exemplo n.º 1
0
        private void appointmentButton_Click_1(object sender, RoutedEventArgs e)
        {
            AddAppointment newAppt = new AddAppointment();

            newAppt.ShowDialog();
            refreshNotifications();
            refreshWeek(0);
        }
Exemplo n.º 2
0
        private void appointmentButton_Click_1(object sender, RoutedEventArgs e)
        {
            //ScheduleAppointment newAppt = new ScheduleAppointment();
            //newAppt.ShowDialog();
            AddAppointment f = new AddAppointment();

            f.ShowDialog();
            refreshNotifications();
            refreshCalendar(0);
        }
Exemplo n.º 3
0
        private void AddAppointment_BTN_Click(object sender, EventArgs e)
        {
            AddAppointment addAppointment = new AddAppointment();

            addAppointment.SetPatientToAcceptedPatient(this.patientController.GetPatientByID(this.selectedPatientID));
            DialogResult result = addAppointment.ShowDialog();

            if (result == DialogResult.Yes)
            {
                this.GetAppointmentData_ForSelectedPatient(this.selectedPatientID);
            }
        }
 private void item_Click(object sender, EventArgs e)
 {
     try
     {
         Calendar cal = this;
         if (m_enableAppointmentAddContextMenu)
         {
             AddAppointment AppAdd = new AddAppointment(ref cal);
             AppAdd.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex.ToString());
     }
 }
        private void btnAdd_Click_1(object sender, EventArgs e)
        {
            int Count = 0;

            if (dgvLichHen.RowCount > 1)
            {
                for (int i = 0; i <= dgvLichHen.RowCount; i++)
                {
                    Count++;
                }
            }

            using (AddAppointment add = new AddAppointment(Count))
            {
                add.ShowDialog();
            }
            dgvLichHen.DataSource = GetAll();
            BindingData();
        }