public override void Run()
        {
            FileMgrDrivesEventArgs e1 = new FileMgrDrivesEventArgs(info, Client.RemoteEndPoint.ToString());

            FileMgrDrivesEvent.OnFileMgrDrives(e1);
            info = null; //clean memory
        }
Example #2
0
        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));
                }
            }
        }
Example #3
0
 public S_FileMgrGetDrives(ClientConnect client, FileMgrDrives info)
     : base(client)
 {
     inf = info;
 }
Example #4
0
 public FileMgrDrivesEventArgs(FileMgrDrives FilemgrDrives, string ip)
 {
     this._FileMgrDrives = FilemgrDrives;
     this.RemoteIP       = ip;
 }