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 EditPuzzlePanel(EditPanel parent) : base() { this.parent = parent; this.Name = "Edit"; this.Dock = DockStyle.Fill; this.Location = new System.Drawing.Point(0, 0); InitializeConstrols(); }
public NewPuzzleView(EditPanel parent) : base() { this.Name = "New"; this.Dock = DockStyle.Fill; this.parent = parent; this.Size = parent.Size; InitailizeControls(); }
public ExistingPuzzleView(EditPanel parent) : base() { this.Name = "Edit"; this.Dock = DockStyle.Fill; this.parent = parent; this.Size = parent.Size; InitailizeConstrols(); puzzlesList.SelectedValueChanged += ChoosedChange; }