Exemplo n.º 1
0
 protected override void OnActivated()
 {
     base.OnActivated();
     ObjectSpace.ObjectChanged += ObjectSpace_ObjectChanged;
     worker = Frame.GetController <WinModificationsController>();
     worker.ModificationsHandlingMode = ModificationsHandlingMode.AutoRollback;
 }
Exemplo n.º 2
0
 protected override void OnActivated()
 {
     base.OnActivated();
     _winDetailViewController = Frame.GetController <WinModificationsController>();
     if (((IModelViewSupressConfirmation)View.Model).SupressConfirmation)
     {
         _winDetailViewController.ModificationsHandlingMode = ModificationsHandlingMode.AutoCommit;
         if (View is DetailView && ObjectSpace.IsNewObject(View.CurrentObject))
         {
             ObjectSpace.ObjectChanged += ObjectSpace_ObjectChanged;
             _winDetailViewController.ModificationsHandlingMode = ModificationsHandlingMode.AutoRollback;
         }
     }
 }
Exemplo n.º 3
0
 protected override void OnDeactivated()
 {
     ObjectSpace.ObjectChanged -= ObjectSpace_ObjectChanged;
     worker = null;
     base.OnDeactivated();
 }