示例#1
0
 protected override void OnActivated() {
     if (ShouldUseCustomImplementation(View as ListView)) {
         _openObjectImplementation = new OpenObjectFromListView(this);
         _openObjectImplementation.ObjectToOpenChanged += openObjectImplementation_ObjectToOpenChanged;
         _openObjectImplementation.OnControllerActivated();
     } else {
         base.OnActivated();
     }
 }
示例#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();
     }
 }
示例#3
0
 protected override void OnActivated()
 {
     if (ShouldUseCustomImplementation(View as ListView))
     {
         _openObjectImplementation = new OpenObjectFromListView(this);
         _openObjectImplementation.ObjectToOpenChanged += openObjectImplementation_ObjectToOpenChanged;
         _openObjectImplementation.OnControllerActivated();
     }
     else
     {
         base.OnActivated();
     }
 }
示例#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();
            }
        }