Esempio n. 1
0
 public SelectLevelForm(MainWindowForm parent)
 {
     _mainForm      = parent;
     this.MdiParent = parent;
     InitializeComponent();
     buttons = new List <Button>();
 }
Esempio n. 2
0
 public GameForm(MainWindowForm parent)
 {
     _mainForm      = parent;
     this.MdiParent = parent;
     InitializeComponent();
     buttons = new SudokuBtn[9][];
     for (int i = 0; i < 9; i++)
     {
         buttons[i] = new SudokuBtn[9];
     }
     time = new Stopwatch();
 }
Esempio n. 3
0
        private void ChildForm_Load(object sender, EventArgs e)
        {
            _mainForm = MdiParent as MainWindowForm;

            int y = 175;

            foreach (LevelInfo lvlInfo in _mainForm.Getloader().GetLevelInfos())
            {
                Button btn = new Button();
                btn.Text      = lvlInfo.GetName();
                btn.Parent    = this;
                btn.BackColor = System.Drawing.Color.Transparent;
                btn.Font      = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                btn.Location  = new System.Drawing.Point(190, y);
                btn.Size      = new System.Drawing.Size(300, 80);
                btn.TabIndex  = 0;
                btn.UseVisualStyleBackColor = false;
                btn.Name   = lvlInfo.GetLevelNumber().ToString();
                btn.Click += new System.EventHandler(this.NewGameBtn_Click);

                btn.Show();
                y += 100;
            }
        }
Esempio n. 4
0
 private void ChildForm_Load(object sender, EventArgs e)
 {
     _mainForm = MdiParent as MainWindowForm;
 }
Esempio n. 5
0
 public LevelLoader(MainWindowForm mainForm)
 {
     _lstLevelInfos = new List <LevelInfo>();
     _LevelInfos    = 0;
     mainWindowForm = mainForm;
 }
Esempio n. 6
0
 public LevelDifficultyForm(MainWindowForm parent)
 {
     _mainForm      = parent;
     this.MdiParent = parent;
     InitializeComponent();
 }
Esempio n. 7
0
 public DialogForm(MainWindowForm parent)
 {
     InitializeComponent();
 }
Esempio n. 8
0
        private void NewGameBtn_Click(object sender, EventArgs e)
        {
            MainWindowForm form = MdiParent as MainWindowForm;

            form.LevelDifficultyMenu();
        }
Esempio n. 9
0
 public MainMenuForm(MainWindowForm parent)
 {
     this.MdiParent = parent;
     InitializeComponent();
 }