private void OnSaveCommand()
        {
            IsBusy = true;
            SubmitOperation subOperation = systemManageDomainContext.SubmitChanges();

            subOperation.Completed += subOperation_Completed;
        }
Ejemplo n.º 2
0
        private void departmentWindow_Closed(object sender, EventArgs e)
        {
            DepartmentWindow departmentWindow = sender as DepartmentWindow;

            if (departmentWindow.DialogResult == true)
            {
                DepartmentEntityList.Add(AddDepartmentEntity);
                systemManageDomainContext.departments.Add(AddDepartmentEntity.Department);
                IsBusy = true;
                SubmitOperation submitOperation = systemManageDomainContext.SubmitChanges();
                submitOperation.Completed += submitOperation_Completed;
            }
        }