Example #1
0
 public void OnClick()
 {
     if (replay.clicked)
     {
         replay.Hide();
     }
     else if (home.clicked)
     {
         home.Hide();
     }
 }
Example #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();
        }
Example #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();
     }
 }