private void LoadFacts_Click(object sender, EventArgs e) { if (all_facts.Count == 0) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() != DialogResult.OK) { return; } if (!System.IO.File.Exists(ofd.FileName)) { return; } get_facts(ofd.FileName); } pictureBox1.Image = null; fill_checked_list_with_facts(); LoadCountries.Hide(); checkedListBox2.Hide(); if (checkedListBox1.Width == 332) { checkedListBox1.Width = 664; } RunForward.Show(); }
private void ClearButton_Click(object sender, EventArgs e) { LoadFacts.Show(); LoadCountries.Show(); RunBackward.Hide(); RunForward.Hide(); checkedListBox2.Hide(); checkedListBox1.Width = checkedListBox2.Width * 2; checkedListBox1.Items.Clear(); checkedListBox2.Items.Clear(); pictureBox1.Image = null; richTextBox1.Text = ""; }
// Start is called before the first frame update void Awake() { Instance = this; }