Пример #1
0
 private void PracticeButton_Click(object sender, EventArgs e)
 {
     matchesPanel.Hide();
     PracticePanel.Show();
     UploadPanel.Hide();
     statsPanel.Hide();
 }
Пример #2
0
 //Runs on start up
 public Form1()
 {
     InitializeComponent();
     con = new MySqlConnection(ConString);
     loadComboBoxes();
     UpdateMatchDetails();
     UpdateWeaponsGrid();
     UpdateHeroesGrid();
     UpdateDataGridView5();
     UpdateDateGridView6();
     UpdateDataGridView7();
     dateTimePicker1.Value            = DateTime.Today.AddYears(-50);
     dateTimePicker2.Value            = DateTime.Today;
     dataGridView1.MultiSelect        = false;
     dataGridView1.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
     dataGridView1.AllowUserToAddRows = false;
     dataGridView2.AllowUserToAddRows = false;
     dataGridView3.AllowUserToAddRows = false;
     dataGridView4.AllowUserToAddRows = false;
     matchesPanel.Show();
     statsPanel.Hide();
     loadChart();
     matchesPanel.Show();
     PracticePanel.Hide();
     UploadPanel.Hide();
     statsPanel.Hide();
 }