Example #1
0
 public Cluster(String n, Implant s, Implant b, Implant f, ImprovementType type)
 {
     ClusterName = n;
     Shining     = s;
     Bright      = b;
     Faded       = f;
     Category    = type;
     ID          = NextID++;
 }
Example #2
0
 private void AddShining(ComboBox cbo, Implant imp)
 {
     foreach (Cluster c in Clusters)
     {
         if (c.Shining.ImplantType == imp.ImplantType)
         {
             cbo.Items.Add(c);
         }
     }
 }
Example #3
0
 private void AddFaded(ComboBox cbo, Implant imp)
 {
     foreach (Cluster c in Clusters)
     {
         if (c.Faded.ImplantType == imp.ImplantType)
         {
             cbo.Items.Add(c);
         }
     }
 }
Example #4
0
 private void SetTag(ComboBox cbo, String name, Implant imp)
 {
     if (cbo.Name.Length < name.Length)
     {
         return;
     }
     if (cbo.Name.Substring(0, name.Length) == name)
     {
         cbo.Tag = imp;
     }
 }
Example #5
0
        private void AddImplant(Implant imp)
        {
            bool Found = false;

            foreach (ImplantItem item in listImplants.Items)
            {
                if (imp.ImplantType == item.ItemImplant.ImplantType)
                {
                    Found = true;
                }
            }
            if (Found == false)
            {
                listImplants.Items.Add(new ImplantItem(imp));
            }
        }