private void DirectoryBox_TextValueChanged(object s, ui_lib.TextChangedEventArgs e)
        {
            //attachManager = new FixtureAttachFilesById(directoryBox.TextValue);

            //attachManager.BeginRun += OnBeginRun;
            //attachManager.EndRun += OnEndRun;
            //attachManager.BeginAttachFile += OnAttachFile;
            //attachManager.EndAttachFile += OnEndAttachFile;

            okButton.Enabled = IsCorrectData();

            ResetLog();

            //int countFiles = attachManager.CountFiles();

            DirectoryInfo dirInfo = new DirectoryInfo(directoryBox.TextValue);

            int countFiles = dirInfo.EnumerateFiles().Count();

            countFilesLabel.Text = countFiles.ToString();
            progress.Maximum     = countFiles;
        }
Exemple #2
0
 private void OnFileBoxChanged(object sender, ui_lib.TextChangedEventArgs e)
 {
     okButton.Enabled = IsCorrectData();
 }
 private void FilePathBox_TextValueChanged(object s, ui_lib.TextChangedEventArgs e)
 {
     okButton.Enabled = IsCorrectData();
 }
 private void OnPathChanged(object s, ui_lib.TextChangedEventArgs e)
 {
     okButton.Enabled = IsAcceptButton();
 }