Esempio n. 1
0
        public override void DoEvent(FileManager fm)
        {
            Classes.MyDisk d = fm.dataHolder.Select(DeviceId, DiskId);
            var            f = d.files.Find((x) => { return(x.FilePath == this.Path); });

            d.files.Remove(f);
            System.IO.FileInfo fi = new System.IO.FileInfo(FileManager.PathToHFOFolder + this.InfoFilePath);
            fi.Delete();
            fm.dataHolder.devices.Find((x) => { return(x.Id == this.DeviceId); }).RewriteDeviceFile();
        }
 public override void DoEvent(FileManager fm)
 {
     Classes.MyDisk d = fm.dataHolder.Select(DeviceId, DiskId);
     d.AddFile(this.Path, this.Category, this.InfoFilePath);
     fm.dataHolder.devices.Find((x) => { return(x.Id == this.DeviceId); }).RewriteDeviceFile();
 }
Esempio n. 3
0
 public DiskNode(Classes.MyDisk myDisk)
 {
     this.myDisk = myDisk;
     this.Text   = myDisk.Name;
     this.Nodes.Add(new TreeNode());
 }