示例#1
0
 private void hideComponents()
 {
     newPlayerButton.Hide();
     removePlayerButton.Hide();
     AddResultsButton.Hide();
     ViewCurrentButton.Hide();
     addPlayerButton.Hide();
     PlayerListBox.Hide();
     HomeButton.Show();
 }
示例#2
0
        //battle over time set total of matches, oppopnentmmrs, losses, and wins to 0

        public mainForm()
        {
            InitializeComponent();
            nameLabel.Hide();
            nameTextBox.Hide();
            HomeButton.Hide();
            textBox1.Hide();
            PlayerListBox.Hide();
            PlayerListBox2.Hide();
            addPlayerButton.Hide();
            battleButton.Hide();
            deleteSinglePlayerButton.Hide();
            deleteAllPlayersButton.Hide();
        }
示例#3
0
 private void HomeButton_Click(object sender, EventArgs e)
 {
     newPlayerButton.Show();
     removePlayerButton.Show();
     AddResultsButton.Show();
     ViewCurrentButton.Show();
     battleButton.Hide();
     nameLabel.Hide();
     nameTextBox.Hide();
     addPlayerButton.Hide();
     textBox1.Clear();
     textBox1.Hide();
     HomeButton.Hide();
     PlayerListBox.Hide();
     PlayerListBox2.Hide();
     deleteSinglePlayerButton.Hide();
     deleteAllPlayersButton.Hide();
     foreach (BasePlayerClass loadPlayer in newpeeps.peeps)
     {
         PlayerListBox.ClearSelected();
         PlayerListBox2.ClearSelected();
         PlayerListBox2.Items.Clear();
     }
 }