Example #1
0
 BankZoneDataA GetNextZoneA(EUnit _Tp)
 {
     lock (cs)
     {
         BankCLUnitA MUnit = null;
         if (_Tp == EUnit.Cross)
         {
             MUnit = MCross;
         }
         else if (_Tp == EUnit.Line)
         {
             MUnit = MLine;
         }
         if (MUnit != null)
         {
             BankZoneDataA z = MUnit.GetNextDataUnitZoneA(TubeLength, MTP);
             if (z != null)
             {
                 MZR.confirmed = GetConfirmed();
                 pr("!!!GetNextZoneA: " + z.ToString());
             }
             return(z);
         }
         return(null);
     }
 }
Example #2
0
 public Bank(cIW _IW)
 {
     IW = _IW;
     if (_IW.Thick)
     {
         MThick = new BankThickUnit();
     }
     if (IW.Cross)
     {
         MCross = new BankCLUnitA(EUnit.Cross, IW);
     }
     if (IW.Line)
     {
         MLine = new BankCLUnitA(EUnit.Line, IW);
     }
     if (IW.SG)
     {
         MSG = new BankSGUnit();
     }
     LoadSettings();
 }