Beispiel #1
0
 public void RemoveAppointment(Appointment a)
 {
     appointments.Remove(a);
     fireAppointmentsChanged();
 }
Beispiel #2
0
 private bool appointmentIsMatch(Appointment appointment, string filter)
 {
     bool match = false;
     match |= Regex.IsMatch(appointment.Title, filter, RegexOptions.IgnoreCase);
     match |= Regex.IsMatch(appointment.Description, filter, RegexOptions.IgnoreCase);
     match |= Regex.IsMatch(appointment.Date, filter, RegexOptions.IgnoreCase);
     return match;
 }
Beispiel #3
0
 public void AddAppointment(Appointment a)
 {
     appointments.Add(a);
     fireAppointmentsChanged();
 }
 public AppointmentDialog(Appointment a)
 {
     appointment = a;
     InitializeComponent();
 }