Exemple #1
0
        private void SetControl(ViewToSelect view, cGameStatus status)
        {
            this.Controls.Clear();
            switch (view)
            {
            case ViewToSelect.Main:
                startControl.Size   = this.ClientSize;
                startControl.Status = status;
                startControl.updateUI();
                this.Controls.Add(startControl);
                break;

            case ViewToSelect.Game:
                gameControl      = new ucGame(viewChanger);
                gameControl.Dock = DockStyle.Fill;
                gameControl.Size = this.ClientSize;
                this.Controls.Add(gameControl);
                gameControl.StartGame(status);

                break;

            default:
                break;
            }
        }
Exemple #2
0
 public M_ChangeView(ViewToSelect viewToSelect)
 {
     View = viewToSelect;
 }
Exemple #3
0
 public M_ChangeView(ViewToSelect viewToSelect)
 {
     View = viewToSelect;
 }