private void button2_Click(object sender, EventArgs e) { FolderBrowserDialog fb = new FolderBrowserDialog(); if (fb.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var wait = new HeatPassport.FormProggress(this, 100); wait.Show(); textBox1.Text = fb.SelectedPath; wait.progressBar1.Value = 50; SaveToExcel(fb.SelectedPath); wait.progressBar1.Value = 90; wait.Close(); } }
private void EcxelProcessCommon(string path) { var proggres = new HeatPassport.FormProggress(this); proggres.Show(); m_currentFile = 0; foreach (string file in m_datFiles) { LoadFusionFromFile(file); SummaryToExcel(path); m_currentFile++; proggres.NewValue(); } proggres.Close(); }