Beispiel #1
0
        //邮件警告数量45,50分别提示
        private void WarnMailNum()
        {
            if (m_Init == false)
            {
                Init();
            }
            var _count = DataModel.MailCells.Count;

            if (_count >= DataModel.MaxCount)
            {
                UIManager.Instance.ShowMessage(MessageBoxType.OkCancel, 416, "",
                                               () =>
                {
                    FriendArguments arg = new FriendArguments();
                    arg.Tab             = 1;
                    EventDispatcher.Instance.DispatchEvent(new Show_UI_Event(UIConfig.SNSFrameUI, arg));
                });
            }
            else if (_count > DataModel.MaxCount - 5)
            {
                UIManager.Instance.ShowMessage(MessageBoxType.OkCancel, 415, "",
                                               () =>
                {
                    FriendArguments arg = new FriendArguments();
                    arg.Tab             = 1;
                    EventDispatcher.Instance.DispatchEvent(new Show_UI_Event(UIConfig.SNSFrameUI, arg));
                });
            }
        }
Beispiel #2
0
        public void OnClickMail()
        {
            FriendArguments arg = new FriendArguments();

            arg.Tab = 1;
            EventDispatcher.Instance.DispatchEvent(new Show_UI_Event(UIConfig.SNSFrameUI, arg));
        }
Beispiel #3
0
        public void OnClickContactChat()
        {
            var arg = new FriendArguments();

            arg.Type = 2;
            var e = new Show_UI_Event(UIConfig.FriendUI, arg);

            EventDispatcher.Instance.DispatchEvent(e);
        }
Beispiel #4
0
        private void OnprivChatEvent(IEvent ievent)
        {//添加联系人
            var _e   = ievent as ChatMainPrivateChar;
            var _arg = new FriendArguments();

            _arg.Type = 1;
            _arg.Data = _e.Data;
            _arg.Tab  = 0;
            if (State == FrameState.Open)
            {
                RefreshData(_arg);
            }
            else
            {
                EventDispatcher.Instance.DispatchEvent(new Show_UI_Event(UIConfig.SNSFrameUI, _arg));
            }
        }