示例#1
0
文件: Form1.cs 项目: efedra/IS
        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();
        }
示例#2
0
文件: Form1.cs 项目: efedra/IS
 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 = "";
 }
示例#3
0
文件: Form1.cs 项目: efedra/IS
 public Form1()
 {
     InitializeComponent();
     RunForward.Hide();
     RunBackward.Hide();
 }