コード例 #1
0
        protected GuiChildPresenter(GuiPresenter parent, bool attachController) : base(parent.Host)
        {
            Parent = parent;

            if (attachController)
            {
                base.View = Host.Provider.GetChildController(this, parent.View);
            }
        }
コード例 #2
0
        public bool CheckExecute(GuiPresenter presenter)
        {
            var MyHandler = (GuiCommandCheckHandler)Delegate.CreateDelegate(typeof(GuiCommandCheckHandler), presenter, _CheckMethod);

            return(MyHandler());
        }
コード例 #3
0
        protected GuiChildPresenter(GuiPresenter parent) : base(parent.Host)
        {
            Parent = parent;

            base.View = Host.Provider.GetChildController(this, parent.View);
        }
コード例 #4
0
        //****************************************

        public void Execute(GuiPresenter presenter)
        {
            var MyHandler = (GuiCommandHandler)Delegate.CreateDelegate(typeof(GuiCommandHandler), presenter, _TargetMethod);

            MyHandler();
        }