Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        public EditPuzzlePanel(EditPanel parent) : base()
        {
            this.parent   = parent;
            this.Name     = "Edit";
            this.Dock     = DockStyle.Fill;
            this.Location = new System.Drawing.Point(0, 0);

            InitializeConstrols();
        }
Esempio n. 3
0
        public NewPuzzleView(EditPanel parent) : base()
        {
            this.Name   = "New";
            this.Dock   = DockStyle.Fill;
            this.parent = parent;
            this.Size   = parent.Size;

            InitailizeControls();
        }
Esempio n. 4
0
        public ExistingPuzzleView(EditPanel parent) : base()
        {
            this.Name   = "Edit";
            this.Dock   = DockStyle.Fill;
            this.parent = parent;
            this.Size   = parent.Size;

            InitailizeConstrols();
            puzzlesList.SelectedValueChanged += ChoosedChange;
        }