private void dvOnline_OnNewAppointment(object sender, NewAppointmentEventArgs e) { HiveDowntime downtime = new HiveDowntime(); downtime.StartDate = e.StartDate; downtime.EndDate = e.EndDate; offlineTimes.Add(downtime); }
void dayView1_NewAppointment(object sender, NewAppointmentEventArgs args) { Appointment m_Appointment = new Appointment(); m_Appointment.StartDate = args.StartDate; m_Appointment.EndDate = args.EndDate; m_Appointment.Title = args.Title; m_Appointments.Add(m_Appointment); }
internal void RaiseNewAppointment() { NewAppointmentEventArgs args = new NewAppointmentEventArgs(selectedAppointment.Title, selectedAppointment.StartDate, selectedAppointment.EndDate); if (NewAppointment != null) { NewAppointment(this, args); } selectedAppointment = null; selectedAppointmentIsNew = false; Invalidate(); }
void dayView1_NewAppointment(object sender, NewAppointmentEventArgs args) { Appointment m_Appointment = new Appointment(); m_Appointment.StartDate = args.StartDate; m_Appointment.EndDate = args.EndDate; m_Appointment.Title = args.Title; m_Appointment.Group = "2"; m_Appointments.Add(m_Appointment); }