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