public MainForm() : base() { this.Text = "Puzzles"; this.Size = new System.Drawing.Size(400, 300); this.BackColor = System.Drawing.SystemColors.ActiveCaption; this.FormBorderStyle = FormBorderStyle.FixedDialog; this.StartPosition = FormStartPosition.CenterScreen; Initialize(); InitiateMenuPanel(); levelEditorPanel = new EditPanel(); this.Controls.Add(levelEditorPanel); levelEditorPanel.Initialize(); levelEditorPanel.Visible = false; levelSolvePanel = new PlayPanel(); this.Controls.Add(levelSolvePanel); levelSolvePanel.Initialize(); levelSolvePanel.Visible = false; MakeResizeEvent += MakeResize; MakeResizeEvent += levelEditorPanel.MakeResize; MakeResizeEvent += levelSolvePanel.MakeResize; this.FormClosing += MainForm_FormClosing; }
public ChoosePuzzlePanel(PlayPanel parent) { this.Name = "Edit"; this.Dock = DockStyle.Fill; this.parent = parent; this.Size = parent.Size; Initailize(); puzzlesList.SelectedValueChanged += ChoosedChange; }
public SolvePanel(PlayPanel parent) : base() { this.parent = parent; this.Name = "Edit"; this.Dock = DockStyle.Fill; this.Location = new System.Drawing.Point(0, 0); timeBegin = DateTime.Now; InitializeConstrols(); }