public GisBaseReferenceTranslationRaw[] LoadGisReferenceTranslation(string Organization, string User, string Password, string lang) { var security = new EidssSecurityManager(); var result = security.LogIn(Organization, User, Password); if (result == 0) //authorized { return(GisBaseReferenceTranslationRaw.GetAll(new [] { lang })); } return(null); }
public bool LoadReferences(string Organization, string User, string Password, long[] types, string[] langs, out BaseReferenceRaw[] refs, out BaseReferenceTranslationRaw[] refs_trans, out GisBaseReferenceRaw[] gis_refs, out GisBaseReferenceTranslationRaw[] gis_refs_trans) { refs = null; refs_trans = null; gis_refs = null; gis_refs_trans = null; var security = new EidssSecurityManager(); var result = security.LogIn(Organization, User, Password); if (result == 0) //authorized { refs = BaseReferenceRaw.GetList(types); refs_trans = BaseReferenceTranslationRaw.GetList(types, langs); gis_refs = GisBaseReferenceRaw.GetAll(); gis_refs_trans = GisBaseReferenceTranslationRaw.GetAll(langs); return(true); } return(false); }