public static void OnFileMgrDrives(FileMgrDrivesEventArgs e) { if (FileMgrDrives != null) { FileMgrDrives(new object(), e); } }
public void onGetDrives(object o, FileMgrDrivesEventArgs e) { try { if (e.RemoteIP != RemoteIP) return; string[] str = new string[3]; str[0] = e._FileMgrDrives.Drive; str[1] = e._FileMgrDrives.Caption; str[2] = e._FileMgrDrives.type; ListViewItem itm = new ListViewItem(str, 1); listView1.Items.Add(itm); }catch{} }
public override void Run() { FileMgrDrivesEventArgs e1 = new FileMgrDrivesEventArgs(info, Client.RemoteEndPoint.ToString()); FileMgrDrivesEvent.OnFileMgrDrives(e1); info = null; //clean memory }
public static void OnFileMgrDrives(FileMgrDrivesEventArgs e) { if (FileMgrDrives != null) FileMgrDrives(new object(), e); }