private void StartButton_Click(object sender, EventArgs e) { if (File.Exists(@Utility.LOCKPATH)) { StartPanel.Hide(); CalculateResult(); } else { MessageBox.Show("Voting lock doesn't exist", "Server Plus", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
public void ShowPanel(int i) { if (i == 0) { gamePanel.Hide(); startPanel.Show(); } else { gamePanel.Show(); startPanel.Hide(); } }