/// <summary> /// Constructor for 4 Players /// </summary> /// <param name="gameName"></param> /// <param name="NumOfPlayers"></param> /// <param name="P1"></param> /// <param name="P2"></param> /// <param name="P3"></param> /// <param name="P4"></param> public TimerForm(string gameName, int NumOfPlayers, string P1, string P2, string P3, string P4) { InitializeComponent(); TimerP1Label.Show(); TimerP2Label.Show(); TimerP3Label.Show(); TimerP4Label.Show(); TimerP1TextBox.Show(); TimerP2TextBox.Show(); TimerP3TextBox.Show(); TimerP4TextBox.Show(); if (P1 == null) { TimerP1Label.Text = "Player 1"; } else { TimerP1Label.Text = P1; } if (P2 == null) { TimerP2Label.Text = "Player 2"; } else { TimerP2Label.Text = P2; } if (P3 == null) { TimerP3Label.Text = "Player 3"; } else { TimerP3Label.Text = P3; } if (P4 == null) { TimerP4Label.Text = "Player 4"; } else { TimerP4Label.Text = P4; } if (gameName == null) { TimerGameNameLabel.Text = "Board Game"; } else { TimerGameNameLabel.Text = gameName; } numPlayers = NumOfPlayers; }
/// <summary> /// Constructor for 8 Players /// </summary> /// <param name="gameName"></param> /// <param name="NumOfPlayers"></param> /// <param name="P1"></param> /// <param name="P2"></param> /// <param name="P3"></param> /// <param name="P4"></param> /// <param name="P5"></param> /// <param name="P6"></param> /// <param name="P7"></param> /// <param name="P8"></param> public TimerForm(string gameName, int NumOfPlayers, string P1, string P2, string P3, string P4, string P5, string P6, string P7, string P8) { InitializeComponent(); TimerP1Label.Show(); TimerP2Label.Show(); TimerP3Label.Show(); TimerP4Label.Show(); TimerP5Label.Show(); TimerP6Label.Show(); TimerP7Label.Show(); TimerP8Label.Show(); TimerP1TextBox.Show(); TimerP2TextBox.Show(); TimerP3TextBox.Show(); TimerP4TextBox.Show(); TimerP5TextBox.Show(); TimerP6TextBox.Show(); TimerP7TextBox.Show(); TimerP8TextBox.Show(); if (P1 == null) { TimerP1Label.Text = "Player 1"; } else { TimerP1Label.Text = P1; } if (P2 == null) { TimerP2Label.Text = "Player 2"; } else { TimerP2Label.Text = P2; } if (P3 == null) { TimerP3Label.Text = "Player 3"; } else { TimerP3Label.Text = P3; } if (P4 == null) { TimerP4Label.Text = "Player 4"; } else { TimerP4Label.Text = P4; } if (P5 == null) { TimerP5Label.Text = "Player 5"; } else { TimerP5Label.Text = P5; } if (P6 == null) { TimerP6Label.Text = "Player 6"; } else { TimerP6Label.Text = P6; } if (P7 == null) { TimerP7Label.Text = "Player 7"; } else { TimerP7Label.Text = P7; } if (P8 == null) { TimerP8Label.Text = "Player 8"; } else { TimerP8Label.Text = P8; } if (gameName == null) { TimerGameNameLabel.Text = "Board Game"; } else { TimerGameNameLabel.Text = gameName; } numPlayers = NumOfPlayers; }