private int GetCheckedFileCount() { CheckedFilenameArgs a = new CheckedFilenameArgs(0); GetCheckedFileCount(System.Threading.Thread.CurrentThread, a); return a._count; }
private string GetCheckedFilename(int index) { CheckedFilenameArgs a = new CheckedFilenameArgs(index); GetCheckedFilename(System.Threading.Thread.CurrentThread, a); return a._curvalue; }
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 }); } }
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 }); } }