示例#1
0
 public frmRandevuTekrar(Appointment pattern,
                         FirstDayOfWeek firstDayOfWeek, AppointmentFormControllerBase controller,
                         int count)
 {
     base.spinRangeOccurrencesCount.Value = count;
     base.edtRangeStart.DateTime          = DateTime.Today;
     base.grpRecurrenceRange.Text         =
         "Range of recurrence: Default Recurrence Count is 7!";
     base.Text = "Appointment Recurrence: Modified Form";
 }
 protected internal virtual void OnEdtEndTimeInvalidValue(object sender, InvalidValueExceptionEventArgs e)
 {
     if (!AppointmentFormControllerBase.ValidateInterval(edtStartDate.DateTime.Date, edtStartTime.Time.TimeOfDay, edtEndDate.DateTime.Date, edtEndTime.Time.TimeOfDay))
     {
         e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_InvalidEndDate);
     }
     else
     {
         e.ErrorText = SchedulerLocalizer.GetString(SchedulerStringId.Msg_DateOutsideLimitInterval);
     }
 }
示例#3
0
        public MyAppointmentRecurrenceForm(Appointment pattern,
                                           FirstDayOfWeek firstDayOfWeek, AppointmentFormControllerBase controller,
                                           RecurrenceType type) : base(pattern, firstDayOfWeek, controller)
        {
            base.dailyRecurrenceControl1.Enabled   = false;
            base.weeklyRecurrenceControl1.Enabled  = false;
            base.monthlyRecurrenceControl1.Enabled = false;
            base.yearlyRecurrenceControl1.Enabled  = false;
            switch (type)
            {
            case RecurrenceType.Daily:
                base.dailyRecurrenceControl1.Enabled = true;
                break;
                // Code for other RecurrenceType cases if required.
            }

            base.grpRecurrencePattern.Text =
                "You can edit only daily recurring appointments";
            base.Text = "Appointment Recurrence: Modified Form";
        }
 protected internal virtual bool IsValidInterval()
 {
     return(AppointmentFormControllerBase.ValidateInterval(edtStartDate.DateTime.Date, edtStartTime.Time.TimeOfDay, edtEndDate.DateTime.Date, edtEndTime.Time.TimeOfDay) &&
            Controller.ValidateLimitInterval(edtStartDate.DateTime.Date, edtStartTime.Time.TimeOfDay, edtEndDate.DateTime.Date, edtEndTime.Time.TimeOfDay));
 }
示例#5
0
 protected internal virtual bool IsValidInterval(DateTime startDate, TimeSpan startTime, DateTime endDate, TimeSpan endTime)
 {
     return(AppointmentFormControllerBase.ValidateInterval(startDate, startTime, endDate, endTime));
 }
 public CustomRecurrenceForm(Appointment pattern, FirstDayOfWeek firstDayOfWeek, AppointmentFormControllerBase controller, RecurrenceType recurrenceType) : base(pattern, firstDayOfWeek, controller)
 {
     chkWeekly.Checked = true;
     chkEndAfterNumberOfOccurrences.Checked = true;
 }