예제 #1
0
        private void bStartScan_Click(object sender, EventArgs e)
        {
            try
            {
                DirectoryInfo di = new DirectoryInfo(tbFolderPath.Text);
                if (di.Exists)
                {
                    string _path = tbFolderPath.Text;
                    if (_modalForm == null)
                    {
                        _modalForm        = new modalScanProgress();
                        _progressChangeEH = new ProgressChangedEventHandler(_modalForm.backgroundWorker1_ProgressChanged);
                    }

                    InitialPopulateTreeView(_path, _progressChangeEH);
                }
            }
            catch (Exception E)
            { MessageBox.Show(_LocRM.GetString("Error_PathNotFound") + ": [" + tbFolderPath.Text + "]\n" + E.Message); }
        }
예제 #2
0
파일: main.cs 프로젝트: 62mkv/FileInventory
        private void bStartScan_Click(object sender, EventArgs e)
        {
            try
            {
                DirectoryInfo di = new DirectoryInfo(tbFolderPath.Text);
                if (di.Exists)
                {
                    string _path = tbFolderPath.Text;
                    if (_modalForm == null) {
                      _modalForm = new modalScanProgress();
                      _progressChangeEH = new ProgressChangedEventHandler(_modalForm.backgroundWorker1_ProgressChanged);
                    }

                    InitialPopulateTreeView(_path, _progressChangeEH);
                }
            }
            catch (Exception E)
            { MessageBox.Show(_LocRM.GetString("Error_PathNotFound")+": ["+tbFolderPath.Text+"]\n"+E.Message); }
        }