Used to notify the user that a series of files was founded.
Inheritance: System.EventArgs
コード例 #1
0
ファイル: SearchTool.cs プロジェクト: gratianlup/SecureDelete
 private void OnFilesFound(object sender, FileSearchArgs e)
 {
     Thread.Sleep(50);
     wipeModule.Invoke(new FileSearchDelegate(OnFilesFoundDispatcher), null, e);
 }
コード例 #2
0
ファイル: SearchTool.cs プロジェクト: gratianlup/SecureDelete
        private void OnFilesFoundDispatcher(object sender, FileSearchArgs e)
        {
            if(e.files != null && e.files.Length > 0) {
                int count = e.files.Length;

                wipeModule.ObjectList.BeginUpdate();
                for(int i = 0; i < count; i++) {
                    wipeModule.AddFile(e.files[i]);
                }
                wipeModule.ObjectList.EndUpdate();
            }

            if(_searching == false) {
                e.stop = true;
            }

            if(e.lastSet) {
                StopSearch();
            }

            this.Update();
        }
コード例 #3
0
        private void SendResultChunk(string[] files, bool lastSet)
        {
            FileSearchArgs e = new FileSearchArgs(files, lastSet);

            if(OnFilesFound != null) {
                OnFilesFound(this, e);

                if(e.stop == true) {
                    SetStop(true);
                }
            }
        }