Exemplo n.º 1
0
 protected override void OnActivated() {
     if (ShouldUseCustomImplementation(View as ListView)) {
         _openObjectImplementation = new OpenObjectFromListView(this);
         _openObjectImplementation.ObjectToOpenChanged += openObjectImplementation_ObjectToOpenChanged;
         _openObjectImplementation.OnControllerActivated();
     } else {
         base.OnActivated();
     }
 }
Exemplo n.º 2
0
 protected override void OnDeactivated() {
     var listView = View as ListView;
     if (listView != null) {
         if (listView.Editor is GridView.GridListEditorBase) {
             _openObjectImplementation.OnControllerDeactivated();
             _openObjectImplementation.ObjectToOpenChanged -= openObjectImplementation_ObjectToOpenChanged;
             _openObjectImplementation = null;
         }
     } else {
         base.OnDeactivated();
     }
 }
Exemplo n.º 3
0
 protected override void OnActivated()
 {
     if (ShouldUseCustomImplementation(View as ListView))
     {
         _openObjectImplementation = new OpenObjectFromListView(this);
         _openObjectImplementation.ObjectToOpenChanged += openObjectImplementation_ObjectToOpenChanged;
         _openObjectImplementation.OnControllerActivated();
     }
     else
     {
         base.OnActivated();
     }
 }
Exemplo n.º 4
0
        protected override void OnDeactivated()
        {
            var listView = View as ListView;

            if (listView != null)
            {
                if (listView.Editor is GridView.GridListEditorBase)
                {
                    _openObjectImplementation.OnControllerDeactivated();
                    _openObjectImplementation.ObjectToOpenChanged -= openObjectImplementation_ObjectToOpenChanged;
                    _openObjectImplementation = null;
                }
            }
            else
            {
                base.OnDeactivated();
            }
        }