private void FrmBoard_Load(object sender, EventArgs e) { //this.Left = 0; //this.Top = 0; this.Left = 1920 - Width; this.Top = 1080 - Height; BoardPanel.Show(); writingBoard.Initialize(BoardPanel.Handle, BoardPanel.ClientSize.Height, BoardPanel.ClientSize.Width); }
private void button1_Click(object sender, EventArgs e) { MenuPanel.Hide(); TextBox txt = new TextBox(); txt.Text = "Game Panel"; GamePanel.Controls.Add(txt); GamePanel.Show(); Image Archer = Image.FromFile(@"C:\Users\kyle.marshall\Source\Repos\Jordans_Game\Jordans_Game\P1Archer.png"); //ceate pieces Piece P1A = new Piece(Archer, 110, 30); pieces.Add(P1A); BoardPanel.Show(); }
private void onStart(BoardGame.EValuationBasis valuationBasis, BoardGame.UserPlayer user, BoardGame.AIPlayer ai) { TurnPanel.OnStart(); CriterionPanel.Show(); BoardPanel.Show(); PresentPanel.OnStart(user, ai); CardPanel.OnStart(user, ai); PersonalInfoPanel.OnStart(valuationBasis, user, ai); BlockingPanel.Show(); GameStatePanel.Hide(); Show(); GameStatePanel.OnStart(); }