public Uom getUomByInternalCode(string Internal) { for (int n = 0; n < uomList.Count; n++) { Uom u = (Uom)uomList[n]; if (u.intCode.ToUpper() == Internal.ToUpper()) { return(u); } } throw new Exception(Internal + " olcu birimi gecerli degil"); }
public bool isInputValid(string External) { try { Uom u = getUomByExternalCode(External); for (int n = 0; n < enabledUomList.Count; n++) { Uom u2 = (Uom)enabledUomList[n]; if (u.intCode == u2.intCode) { return(true); } } return(false); } catch { return(false); } }
public void addEnabledUom(string Internal) { Uom u = getUomByInternalCode(Internal); enabledUomList.Add(u); }
public void add(string Internal, string External) { Uom u = new Uom(Internal, External); uomList.Add(u); }