Beispiel #1
0
 public Types.ScanInfo DiskScan(string diskId, bool isUndo)
 {
     if (string.IsNullOrEmpty(diskId)) { return Types.ScanInfo.ScanError; }
     if (!disks.ContainsKey(diskId)) { return Types.ScanInfo.NotInBill; }
     this.currentDisk = disks[diskId];
     if (isUndo) { return this.currentDisk.UnReturn(); }
     return currentDisk.Return();
 }
Beispiel #2
0
 public Types.ScanInfo DiskScan(string diskId, bool isUndo)
 {
     if (string.IsNullOrEmpty(diskId))
     {
         return(Types.ScanInfo.ScanError);
     }
     if (!disks.ContainsKey(diskId))
     {
         return(Types.ScanInfo.NotInBill);
     }
     this.currentDisk = disks[diskId];
     if (isUndo)
     {
         return(this.currentDisk.UnReturn());
     }
     return(currentDisk.Return());
 }