Used to notify the user that a series of files was founded.
Inheritance: System.EventArgs
示例#1
0
 private void OnFilesFound(object sender, FileSearchArgs e)
 {
     Thread.Sleep(50);
     wipeModule.Invoke(new FileSearchDelegate(OnFilesFoundDispatcher), null, e);
 }
示例#2
0
        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);
                }
            }
        }