Ejemplo n.º 1
0
        public override void Execute(INotification notification)
        {
            MainUIForm view = notification.Body as MainUIForm;

            if (view != null)
            {
                view.OpenUIForm(ProConst.PRO_UIFORM_MARKETUIFORM);
                switch (notification.Name)
                {
                case ProConst.PRO_MVC_MAIN_BTNINFO:
                    SendNotification(ProConst.PRO_MVC_MARKET_MAIN, new MarketData()
                    {
                        Name = "主窗体__信息", Age = "20", Sex = "男"
                    });
                    break;

                case ProConst.PRO_MVC_MAIN_BTNSKILL:
                    SendNotification(ProConst.PRO_MVC_MARKET_MAIN, new MarketData()
                    {
                        Name = "主窗体__技能", Age = "40", Sex = "男"
                    });
                    break;
                }
            }
        }
Ejemplo n.º 2
0
 public MainMediator(MainUIForm viewComponent)
     : base(NAME, viewComponent)
 {
     View.Btn_Info  += BtnInfo_Click;
     View.Btn_Skill += BtnSkill_Click;
 }