Esempio n. 1
0
        public async void Save()
        {
            using (ActiveDetail.Busy.GetTicket())
                await ActiveUnitOfWork.CommitAsync();

            ActiveDetail.Start(ActiveStaffingResource.Id, EditMode.View);
        }
Esempio n. 2
0
        public void Cancel()
        {
            var shouldClose = ActiveStaffingResource.EntityFacts.EntityState.IsAdded();

            ActiveUnitOfWork.Rollback();

            if (shouldClose)
            {
                ActiveDetail.TryClose();
            }
            else
            {
                ActiveDetail.Start(ActiveStaffingResource.Id, EditMode.View);
            }
        }
Esempio n. 3
0
 public void Edit()
 {
     ActiveDetail.Start(ActiveStaffingResource.Id, EditMode.Edit);
 }