Пример #1
0
        public bool bBuildEquipmentList()
        {
            DutStruct[]    MyDutManufactureCoefficientsStructArray;
            DriverStruct[] MyManufactureChipsetStructArray;
            int            i = 0;

            try
            {
                if (MyEquipList != null)
                {
                    MyEquipList.Clear();
                }
                pDut             = (DUT)MyEquipmentManage.Createobject(ProductionTypeName.ToUpper() + "DUT");
                pDut.deviceIndex = 0;
                MyDutManufactureCoefficientsStructArray = GetDutManufactureCoefficients();
                MyManufactureChipsetStructArray         = GetManufactureChipsetControl();

                pDut.Initialize(MyDutManufactureCoefficientsStructArray, MyManufactureChipsetStructArray, StrAuxAttribles);

                for (i = 0; i < EquipmenNameArray.Count; i++)
                {
                    TestModeEquipmentParameters[] CurrentEquipmentStruct = GetCurrentEquipmentInf(EquipmenNameArray.Values[i].ToString());
                    string[] List = EquipmenNameArray.Keys[i].ToString().Split('_');
                    string   CurrentEquipmentName = List[0];
                    string   CurrentEquipmentID   = List[1];
                    string   CurrentEquipmentType = List[2];

                    MyEquipList.Add(EquipmenNameArray.Keys[i].ToString(), (EquipmentBase)MyEquipmentManage.Createobject(CurrentEquipmentName));
                    if (!MyEquipList[EquipmenNameArray.Keys[i].ToString()].Initialize(CurrentEquipmentStruct))
                    {
                        return(false);
                    }
                    if (!MyEquipList[EquipmenNameArray.Keys[i].ToString()].Configure())
                    {
                        return(false);
                    }
                }
                pEnvironmentcontroll = new EnvironmentalControll(pDut);
                return(true);
            }
            catch (Exception EX)
            {
                MessageBox.Show(EX.Message);
                return(false);
            }
        } //建立Equipmen List
Пример #2
0
 public void ClearInventory()
 {
     InventoryItems.Clear();
     EquipedItems.Clear();
 }
Пример #3
0
 public void Clear()
 {
     MyEquipList.Clear();
 }