Пример #1
0
 private int GetCheckedFileCount()
 {
     CheckedFilenameArgs a = new CheckedFilenameArgs(0);
     GetCheckedFileCount(System.Threading.Thread.CurrentThread, a);
     return a._count;
 }
Пример #2
0
 private string GetCheckedFilename(int index)
 {
     CheckedFilenameArgs a = new CheckedFilenameArgs(index);
     GetCheckedFilename(System.Threading.Thread.CurrentThread, a);
     return a._curvalue;
 }
Пример #3
0
 void GetCheckedFileCount(object sender, CheckedFilenameArgs a)
 {
     if (this.InvokeRequired == false)
     {
         int count = 0;
         GetListViewCheckedFileCount(directoryStructure.Nodes[0], count);
         a._count = count;
     }
     else
     {
         GetCheckedFileCountHandler handler = new GetCheckedFileCountHandler(GetCheckedFileCount);
         Invoke(handler, new object[] { sender, a });
     }
 }
Пример #4
0
 void GetCheckedFilename(object sender, CheckedFilenameArgs a)
 {
     if (this.InvokeRequired == false)
     {
         a._curvalue = this.directoryStructure.Nodes[a._index].ToString();
     }
     else
     {
         GetCheckedFilenameHandler handler = new GetCheckedFilenameHandler(GetCheckedFilename);
         Invoke(handler, new object[] { sender, a });
     }
 }