Exemplo n.º 1
0
 protected override void OnActivated() {
     base.OnActivated();
     var modelOptions = Application.Model.Options;
     bool isVisible = new ModelOptionFormCachingVisibilityCalculator().IsVisible(modelOptions, null);
     _closeWindowController = Frame.GetController<CloseWindowController>();
     if (isVisible && ((IModelOptionsFormCaching)modelOptions).FormCaching) {
         _closeWindowController.CanClose += OnCanClose;
         Application.DetailViewCreated += ApplicationOnDetailViewCreated;
     }
 }
Exemplo n.º 2
0
        protected override void OnActivated()
        {
            base.OnActivated();
            var  modelOptions = Application.Model.Options;
            bool isVisible    = new ModelOptionFormCachingVisibilityCalculator().IsVisible(modelOptions, null);

            _closeWindowController = Frame.GetController <CloseWindowController>();
            if (isVisible && ((IModelOptionsFormCaching)modelOptions).FormCaching)
            {
                _closeWindowController.CanClose += OnCanClose;
                Application.DetailViewCreated   += ApplicationOnDetailViewCreated;
            }
        }
Exemplo n.º 3
0
 protected override void OnActivated()
 {
     base.OnActivated();
     _closeWindowController           = Frame.GetController <CloseWindowController>();
     _closeWindowController.CanClose += OnCanClose;
 }
 protected override void OnActivated(){
     base.OnActivated();
     _closeWindowController = Frame.GetController<CloseWindowController>();
     _closeWindowController.CanClose+=OnCanClose;
 }