Exemplo n.º 1
0
        private void DataPortal_Fetch(SingleCriteria <CompanyEdit, int> criteria)
        {
            ExceptionManager.Process(
                () =>
            {
                using (var repository = new Repository())
                {
                    var dto = repository.GetCompany(criteria.Value);

                    LoadProperty(CompanyIDProperty, dto.CompanyID);
                    LoadProperty(CompanyNameProperty, dto.CompanyName);
                    LoadProperty(NotesProperty, dto.Notes);

                    LoadProperty(EmployeesProperty, EmlpoyeeEditList.GetEmlpoyeeEditList(dto));
                }
            });
        }
Exemplo n.º 2
0
 protected override void DataPortal_Create()
 {
     base.DataPortal_Create();
     LoadProperty(EmployeesProperty, EmlpoyeeEditList.NewEmlpoyeeEditList());
 }
Exemplo n.º 3
0
 new public void DataPortal_Create(LocalProxy <CompanyEdit> .CompletedHandler callback)
 {
     LoadProperty(EmployeesProperty, EmlpoyeeEditList.NewEmlpoyeeEditList());
 }