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; } }
public M_ChangeView(ViewToSelect viewToSelect) { View = viewToSelect; }