Beispiel #1
0
        private void newButton_Click(object sender, EventArgs e)
        {
            var creator = new SchedulerCreator();

            creator.Size     = mainContainer.Size;
            creator.Location = mainContainer.Location;
            creator.Parent   = this;

            Controls.Add(creator);
            creator.BringToFront();

            newButton.Visible = false;
        }
Beispiel #2
0
 public void OnCreatorClosed(SchedulerCreator creator)
 {
     Controls.Remove(creator);
     newButton.Visible = true;
 }