public override void Run() { FileMgrDrivesEventArgs e1 = new FileMgrDrivesEventArgs(info, Client.RemoteEndPoint.ToString()); FileMgrDrivesEvent.OnFileMgrDrives(e1); info = null; //clean memory }
public override void Run() { DriveInfo[] Drives = DriveInfo.GetDrives(); foreach (DriveInfo Drive in Drives) { if (Drive.IsReady) { FileMgrDrives info = new FileMgrDrives(); info.Drive = Drive.Name; info.Caption = Drive.VolumeLabel; info.type = Drive.DriveType.ToString(); Client.SendPacket(new S_FileMgrGetDrives(Client, info)); } } }
public S_FileMgrGetDrives(ClientConnect client, FileMgrDrives info) : base(client) { inf = info; }
public FileMgrDrivesEventArgs(FileMgrDrives FilemgrDrives, string ip) { this._FileMgrDrives = FilemgrDrives; this.RemoteIP = ip; }