private void HideScheduleEditControl() { currentScheduleControl.Visible = false; this.Controls.Remove(currentScheduleControl); currentScheduleControl.Dispose(); currentScheduleControl = null; }
private void ShowScheduleEditControl() { currentScheduleControl = new WomenCalendar.Controls.ScheduleControl(); currentScheduleControl.Visible = false; currentScheduleControl.Location = new System.Drawing.Point(0, 150); currentScheduleControl.Size = new System.Drawing.Size(353, 62); currentScheduleControl.TabIndex = 10018; currentScheduleControl.ScheduleText = txtScheduleText.Text; currentScheduleControl.Changed += coloredSchedulerCalendarControl1.ApplySchedule; this.Controls.Add(currentScheduleControl); currentScheduleControl.BringToFront(); currentScheduleControl.Visible = true; }