Exemplo n.º 1
0
        public int RunSetTypeDictCaseWindow(TypeDictCase useCase)
        {
            SetEleDictWindow tdw = new SetEleDictWindow(this, useCase);

            tdw.Modal = true;
            tdw.Show();
            return(tdw.Run());
        }
Exemplo n.º 2
0
 public SetEleDictWindow(ElementTypeDictionary eleType, TypeDictCase useCase)
 {
     uCase    = useCase;
     dictCase = useCase;
     eleTypes = eleType;
     buttons  = new List <CheckButton> ();
     someLabs = eleTypes.GetTypesforCase(useCase);
     allLabs  = eleTypes.GetAllTypes();
     this.Build();
     MakeCheckList();
 }
Exemplo n.º 3
0
        public Dictionary <string, List <T> > GetEmptyTypeDict <T>(TypeDictCase useCase)
        {
            Dictionary <string, List <T> > dbl = new Dictionary <string, List <T> > ();

            foreach (string st in typeCases[useCase])
            {
                dbl.Add(st, new List <T> ());
            }

            return(dbl);
        }
Exemplo n.º 4
0
        public Dictionary <string, List <List <T> > > GetEmptyTypeDict2D <T>(TypeDictCase useCase, int innerEntCount)
        {
            Dictionary <string, List <List <T> > > dbl = new Dictionary <string, List <List <T> > > ();

            foreach (string st in typeCases[useCase])
            {
                dbl.Add(st, new List <List <T> > ());

                for (int i = 0; i < innerEntCount; i++)
                {
                    dbl [st].Add(new List <T> ());
                }
            }

            return(dbl);
        }
Exemplo n.º 5
0
 public void RecieveTypesForCase(TypeDictCase useCase, List <string> lstr)
 {
     typeCases [useCase] = lstr;
 }
Exemplo n.º 6
0
 public List <string> GetTypesforCase(TypeDictCase useCase)
 {
     return(typeCases [useCase]);
 }