Example #1
0
 protected BasePresenter(TForm form)
 {
     Form = form;
     AddressBusinessService     = new AddressBusinessService();
     StreetBusinessService      = new StreetBusinessService();
     SubdivisionBusinessService = new SubdivisionBusinessService();
 }
Example #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";
        }