Exemplo n.º 1
0
 protected BasePresenter(TForm form)
 {
     Form = form;
     AddressBusinessService     = new AddressBusinessService();
     StreetBusinessService      = new StreetBusinessService();
     SubdivisionBusinessService = new SubdivisionBusinessService();
 }
Exemplo n.º 2
0
        protected virtual void InitializeStreets(ComboBox comboBox, bool wantNull)
        {
            IEnumerable <StreetBusinessObject> streets = StreetBusinessService.GetStreets(wantNull);

            comboBox.DataSource    = streets;
            comboBox.ValueMember   = "StreetId";
            comboBox.DisplayMember = "StreetName";
        }