예제 #1
0
        public override void Init()
        {
            this._actvDict     = null;
            this._checkTimer   = 0;
            this._refreshTimer = 0;
            this._campaignForm = new CampaignForm(this);
            Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Activity_OpenForm, new CUIEventManager.OnUIEventHandler(this.OnOpenCampaignForm));

            Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Activity_CloseForm, new CUIEventManager.OnUIEventHandler(this.OnCloseCampaignForm));

            Singleton <EventRouter> .instance.AddEventHandler("IDIPNOTICE_UNREAD_NUM_UPDATE", new Action(this, (IntPtr)this.OnIDIPNoticeUpdate));
        }
예제 #2
0
        public override void Init()
        {
            this.m_bShareTask  = false;
            this._actvDict     = null;
            this._checkTimer   = 0;
            this._refreshTimer = 0;
            this._campaignForm = new CampaignForm(this);
            Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Activity_OpenForm, new CUIEventManager.OnUIEventHandler(this.OnOpenCampaignForm));

            Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Activity_CloseForm, new CUIEventManager.OnUIEventHandler(this.OnCloseCampaignForm));

            Singleton <EventRouter> .instance.AddEventHandler("IDIPNOTICE_UNREAD_NUM_UPDATE", new System.Action(this.OnIDIPNoticeUpdate));

            Singleton <EventRouter> .GetInstance().AddEventHandler(EventID.GLOBAL_REFRESH_TIME, new System.Action(ActivitySys.OnResetAllExchangeCount));
        }