protected void RenderRecurrenceControl(bool isRecurring) { if (this.recurrenceControl != null) { this.recurrenceControl.Visible = isRecurring; return; } AppointmentFormTemplateContainer container = (AppointmentFormTemplateContainer)Parent; this.recurrenceControl = new AppointmentRecurrenceControl(); recurrenceControl.ID = "RecurrenceControl1"; recurrenceControl.Visible = isRecurring;//container.ShouldShowRecurrence; recurrenceControl.DayNumber = container.RecurrenceDayNumber; recurrenceControl.End = container.RecurrenceEnd; recurrenceControl.Month = container.RecurrenceMonth; recurrenceControl.OccurrenceCount = container.RecurrenceOccurrenceCount; recurrenceControl.Periodicity = container.RecurrencePeriodicity; recurrenceControl.RecurrenceRange = container.RecurrenceRange; recurrenceControl.Start = container.RecurrenceStart; recurrenceControl.WeekDays = container.RecurrenceWeekDays; recurrenceControl.WeekOfMonth = container.RecurrenceWeekOfMonth; recurrenceControl.RecurrenceType = container.RecurrenceType; recurrenceControl.IsFormRecreated = container.IsFormRecreated; RecurrencePanel.Controls.Add(recurrenceControl); recurrenceControl.EditorsInfo = new EditorsInfo(container.Control, container.Control.Styles.FormEditors, container.Control.Images.FormEditors, container.Control.Styles.Buttons); }
protected void RenderRecurrenceControl(bool isRecurring) { if(this.recurrenceControl != null) { this.recurrenceControl.Visible = isRecurring; return; } AppointmentFormTemplateContainer container = (AppointmentFormTemplateContainer)Parent; this.recurrenceControl = new AppointmentRecurrenceControl(); recurrenceControl.ID = "RecurrenceControl1"; recurrenceControl.Visible = isRecurring;//container.ShouldShowRecurrence; recurrenceControl.DayNumber = container.RecurrenceDayNumber; recurrenceControl.End = container.RecurrenceEnd; recurrenceControl.Month = container.RecurrenceMonth; recurrenceControl.OccurrenceCount = container.RecurrenceOccurrenceCount; recurrenceControl.Periodicity = container.RecurrencePeriodicity; recurrenceControl.RecurrenceRange = container.RecurrenceRange; recurrenceControl.Start = container.RecurrenceStart; recurrenceControl.WeekDays = container.RecurrenceWeekDays; recurrenceControl.WeekOfMonth = container.RecurrenceWeekOfMonth; recurrenceControl.RecurrenceType = container.RecurrenceType; recurrenceControl.IsFormRecreated = container.IsFormRecreated; RecurrencePanel.Controls.Add(recurrenceControl); recurrenceControl.EditorsInfo = new EditorsInfo(container.Control, container.Control.Styles.FormEditors, container.Control.Images.FormEditors, container.Control.Styles.Buttons); }