Example #1
0
        internal static void ConstrainTipInfo(Layout layout)
        {
            if (layout.DitiInfo != null 
                && layout.DitiInfo.DitiBoxInfos != null
                && layout.DitiInfo.DitiBoxInfos.Count != 0)
                return;

            DitiInfo ditiInfo = new DitiInfo();
            Dictionary<DitiType, string> currentDitis = new Dictionary<DitiType, string>();
            foreach (Carrier carrier in layout.Carriers )
            {
                if (carrier.TypeName == BuildInCarrierType.Diti.ToString())
                {

                    foreach (Labware labware in carrier.Labwares)
                    {
                        //LabwareTraits.Add(new LabwareTrait(labware));
                        DitiType ditiType = DitiBox.Parse(labware.TypeName); 
                        DitiBoxInfo ditiBoxInfo = new DitiBoxInfo(ditiType, labware.Label,96);
                        if (ditiInfo.GetCurrentLabel(ditiType) == "")
                        {
                            ditiBoxInfo.isUsing = true;
                        }
                        ditiInfo.DitiBoxInfos.Add(ditiBoxInfo);
                    }
                }
            }
            layout.DitiInfo = ditiInfo;
        }
Example #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public Layout()
 {
     CarrierTraits = new List<CarrierTrait>();
     LabwareTraits = new List<LabwareTrait>();
     _ditiInfo = new DitiInfo();
 }