Ejemplo n.º 1
0
 public SelectLevelForm(MainWindowForm parent)
 {
     _mainForm      = parent;
     this.MdiParent = parent;
     InitializeComponent();
     buttons = new List <Button>();
 }
Ejemplo 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();
 }
Ejemplo 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;
            }
        }
Ejemplo n.º 4
0
 private void ChildForm_Load(object sender, EventArgs e)
 {
     _mainForm = MdiParent as MainWindowForm;
 }
Ejemplo n.º 5
0
 public LevelLoader(MainWindowForm mainForm)
 {
     _lstLevelInfos = new List <LevelInfo>();
     _LevelInfos    = 0;
     mainWindowForm = mainForm;
 }
Ejemplo n.º 6
0
 public LevelDifficultyForm(MainWindowForm parent)
 {
     _mainForm      = parent;
     this.MdiParent = parent;
     InitializeComponent();
 }
Ejemplo n.º 7
0
 public DialogForm(MainWindowForm parent)
 {
     InitializeComponent();
 }
Ejemplo n.º 8
0
        private void NewGameBtn_Click(object sender, EventArgs e)
        {
            MainWindowForm form = MdiParent as MainWindowForm;

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