Example #1
0
 public void AddEquipment(EquipmentModel pEquipment)
 {
     if (!EquipmentList.Contains(pEquipment))
     {
         EquipmentList.Add(pEquipment);
     }
 }
 public bool Add(string StrEquipmenName, EquipmentBase pEquipmentBase)
 {
     // MyEquipList.Add(EquipmenNameArray.Keys[i].ToString(), (EquipmentBase)MyEquipmentManage.Createobject(CurrentEquipmentName));
     MyEquipList.Add(StrEquipmenName, (EquipmentBase)pEquipmentBase);
     // MyEquipList.Clear();
     return(true);
 }
Example #3
0
        public TEquipmentSlot AddEquipmentSlot(string name)
        {
            TEquipmentSlot newSlot = new TEquipmentSlot(name);

            newSlot.AddEquipment(0, 0, 0, "None");
            EquipmentList.Add(newSlot);
            return(newSlot);
        }
Example #4
0
        private void InitEquipment()
        {
            var enumarable = App.RecipeDbcontroller.GetRecipeEquipment(Recipe.RecipeID);

            foreach (Equipment e in enumarable)
            {
                EquipmentList.Add(e);
            }
        }
 public void AddItem(EquipItem i)
 {
     if (EquipmentList.ContainsKey(i.Slot))
     {
         throw new Exception("Item in dictionary. Possibly remove what's in their first");
     }
     else
     {
         EquipmentList.Add(i.Slot, i);
         i.OnEquip(Owner, i);
         throw new Exception("Remove from player bag");
     }
 }
Example #6
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
 public bool AddEquipment(Equipment input)
 {
     if (input == null)
     {
         return(false);
     }
     else
     {
         if (EquipmentList.Contains(input))
         {
             return(false);
         }
         else
         {
             EquipmentList.Add(input);
             return(true);
         }
     }
 }
        public Power60Hz()
        {
            //Assign defaults to each list
            EquipmentList.Add("Option1");
            EquipmentList.Add("Option2");
            EquipmentList.Add("Option3");
            EquipmentList.Add("Option4");

            WorkModeList.Add("Option1");
            WorkModeList.Add("Option2");
            WorkModeList.Add("Option3");
            WorkModeList.Add("Option4");

            ConductTypeList.Add("Copper");
            ConductTypeList.Add("Aluminum");

            ConduitTypeList.Add("PVC");
            ConduitTypeList.Add("Aluminum");
            ConduitTypeList.Add("Steel");
        }