public int RunSetTypeDictCaseWindow(TypeDictCase useCase) { SetEleDictWindow tdw = new SetEleDictWindow(this, useCase); tdw.Modal = true; tdw.Show(); return(tdw.Run()); }
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(); }
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); }
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); }
public void RecieveTypesForCase(TypeDictCase useCase, List <string> lstr) { typeCases [useCase] = lstr; }
public List <string> GetTypesforCase(TypeDictCase useCase) { return(typeCases [useCase]); }