public ChancellorPolicyDiscard(Players HumanPlayer, string Policy1, string Policy2) { //Write text on label and text on radio buttons InitializeComponent(); LBL_InfoText.Text = "Chancellor " + HumanPlayer.Name + ", pick which policy would you like to discard." + Environment.NewLine + "Other policy will be implemented."; RADBTN_Policy1.Text = Policy1; RADBTN_Policy2.Text = Policy2; //Select first button so even if the form in closed, a choice is made RADBTN_Policy1.Select(); }
public PresidentPolicyDiscard(Players HumanPlayer, List <string> Policies) { InitializeComponent(); //Label will be written depending on player name LBL_IntroText.Text = "President " + HumanPlayer.Name + ", choose which policy would you like to discard." + Environment.NewLine + " Other two policies will be" + " given to the chancellor."; //Radio button text depends on which first 3 policies are RADBTN_Policy1.Text = Policies[0]; RADBTN_Policy2.Text = Policies[1]; RADBTN_Policy3.Text = Policies[2]; RADBTN_Policy1.Select(); }