private void RegisterAppointmentRow(DataRow row, Appointment apt)
 {
     if (!AppointmentRowDictionary.ContainsKey(row))
     {
         AppointmentRowDictionary.Add(row, apt);
     }
     if (!RowAppointmentDictionary.ContainsKey(apt))
     {
         RowAppointmentDictionary.Add(apt, row);
     }
 }
        private void schedulerStorage1_AppointmentsDeleted(object sender, PersistentObjectsEventArgs e)
        {
            AppointmentBaseCollection apts = (AppointmentBaseCollection)e.Objects;

            foreach (Appointment apt in apts)
            {
                DataRow row = (DataRow)RowAppointmentDictionary[apt];
                AppointmentRowDictionary.Remove(row);
                RowAppointmentDictionary.Remove(apt);
            }
        }
 protected Appointment FindAppointmentByRow(DataRow row)
 {
     if (AppointmentRowDictionary.ContainsKey(row))
     {
         return(AppointmentRowDictionary[row]);
     }
     else
     {
         return(null);
     }
 }
 private void schedulerStorage1_AppointmentCollectionCleared(object sender, EventArgs e)
 {
     AppointmentRowDictionary.Clear();
     RowAppointmentDictionary.Clear();
 }