예제 #1
0
        private void func()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

            textBox1.Text = "Cleaning directory";
            if (Directory.Exists(dir))
            {
                Directory.Delete(dir, true);
            }
            progressBar.Value += 100 / 4;
            mainform.init(d, f, o, dir);
            mainform.controller.savePathParseDir(d, f, o, dir);
            textBox1.Text = "Parse const t diagram data";
            mainform.controller.ParseCT();
            progressBar.Value += 100 / 4;
            textBox1.Text      = "Parse along ID and XT diagram data";
            mainform.controller.ParseAID_XT();
            progressBar.Value += 100 / 4;
            textBox1.Text      = "Parse 3d diagram data";
            mainform.controller.Parse3d();
            progressBar.Value  += 100 / 4;
            buttonParse.Text    = "Start";
            this.parse          = true;
            buttonParse.Enabled = true;
            textBox1.Text       = "OK";
            progressBar.Value   = 0;
        }
예제 #2
0
 private void buttonOpen_Click(object sender, EventArgs e)
 {
     if (dir != "")
     {
         if (!Directory.Exists(dir))
         {
             MessageBox.Show("Directory " + dir + " not exists");
             return;
         }
         main.init(dir);
         main.Enabled = true;
         main.controller.savePathLoadDir(dir);
         this.Close();
     }
 }