private void incarcaAdresaPentruTipProprietar(EnumTipProprietar pTipProprietar) { pTipProprietar = _STipProprietar; switch (pTipProprietar) { case EnumTipProprietar.Client: if (this.lClient != null) { this.ctrlAdresa.Initializeaza(BAdrese.getAdresaByIdProprietar(this.lClient.Id, null), CDL.iStomaLab.CDefinitiiComune.EnumTipObiect.Clienti, this.lClient.Id, BAdrese.EnumTipAdresa.Nedefinit); } break; case EnumTipProprietar.Utilizator: if (this.lUtilizator != null) { this.ctrlAdresa.Initializeaza(BAdrese.getAdresaByIdProprietar(this.lUtilizator.Id, null), CDL.iStomaLab.CDefinitiiComune.EnumTipObiect.Utilizator, this.lUtilizator.Id, BAdrese.EnumTipAdresa.Nedefinit); } break; case EnumTipProprietar.Cabinet: if (this.lCabinet != null) { this.ctrlAdresa.Initializeaza(BAdrese.getAdresaByIdProprietar(this.lCabinet.Id, null), CDL.iStomaLab.CDefinitiiComune.EnumTipObiect.ClientiCabinete, this.lCabinet.Id, BAdrese.EnumTipAdresa.Nedefinit); } break; } }
public static bool Afiseaza(Form pEcranPariente, BClientiCabinete pCabinet) { _STipProprietar = EnumTipProprietar.Cabinet; using (FormAdresaISTOMA ecran = new FormAdresaISTOMA(pCabinet)) { ecran.AplicaPreferinteleUtilizatorului(); return(CCL.UI.IHMUtile.DeschideEcran(pEcranPariente, ecran)); } }