Exemplo n.º 1
0
 public Types.ScanInfo NewDiskScan(string diskId, string loc, bool isUnDo)
 {
     if (string.IsNullOrEmpty(diskId) || string.IsNullOrEmpty(loc))
     {
         return(Types.ScanInfo.ScanError);
     }
     if (!this.disks.ContainsKey(diskId))
     {
         return(Types.ScanInfo.NotInBill);
     }
     currentDisk = disks[diskId];
     if (isUnDo)
     {
         return(currentDisk.UnMove());
     }
     return(currentDisk.Move(loc));
 }
Exemplo n.º 2
-1
 public Types.ScanInfo NewDiskScan(string diskId, string loc,bool isUnDo)
 {
     if (string.IsNullOrEmpty(diskId) || string.IsNullOrEmpty(loc)) { return Types.ScanInfo.ScanError; }
     if (!this.disks.ContainsKey(diskId)) { return Types.ScanInfo.NotInBill; }
     currentDisk = disks[diskId];
     if (isUnDo) { return currentDisk.UnMove(); }
     return currentDisk.Move(loc);
 }