⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contactmanager.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 3 页
字号:
                this._frameworkWnd.ConversationManager.StartConversation(this._frameworkWnd.MainWindow, ConversationOperation.ImChat, null);
            }
            catch
            {
            }
        }

        public void mi_Feike_Click(object sender, EventArgs e)
        {
            FunctionHelper.StartFunc(WebFunction.NavigateToFeike, string.Format("SID={0}", this._frameworkWnd.AccountManager.CurrentUser.Sid));
        }

        private void mi_File_Click(object sender, EventArgs e)
        {
            this._frameworkWnd.ConversationManager.StartConversation(this._frameworkWnd.MainWindow, ConversationOperation.SendFile, null);
        }

        private void mi_Ivr_Click(object sender, EventArgs e)
        {
            this._frameworkWnd.IVRManager.StartIVR(this._frameworkWnd.MainWindow, null);
        }

        public void mi_MobileMail_Click(object sender, EventArgs e)
        {
            if (!this._frameworkWnd.AccountManager.CurrentUser.MobileMailInfo.IsInRunningProvince.get_HasValue())
            {
                this._frameworkWnd.UnifiedMessageBox.ShowInfo(this._frameworkWnd.MainWindow, "对不起。目前无法获取手机邮箱状态。\r\n请在下次登录客户端后重试。");
            }
            else
            {
                bool? isInRunningProvince = this._frameworkWnd.AccountManager.CurrentUser.MobileMailInfo.IsInRunningProvince;
                if (!isInRunningProvince.GetValueOrDefault() || !isInRunningProvince.get_HasValue())
                {
                    this._frameworkWnd.UnifiedMessageBox.ShowInfo(this._frameworkWnd.MainWindow, "对不起。您所在的省份目前无法通过飞信\r\n使用手机邮箱业务。");
                }
                else if (!MobileMailCommandHelper.CheckMailStatus(this._frameworkWnd.AccountManager.CurrentUser))
                {
                    new MobileEmailApplyForm().Show(this._frameworkWnd.MainWindow);
                }
                else
                {
                    int? nullable3 = this._frameworkWnd.AccountManager.CurrentUser.MobileMailInfo.Binding_Status;
                    if ((nullable3.GetValueOrDefault() != 0) || !nullable3.get_HasValue())
                    {
                        MobileEmailBindForm form = new MobileEmailBindForm(this._frameworkWnd);
                        ControlHelper.ShowDialogCenterOnParent(form, this._frameworkWnd.MainWindow, true);
                    }
                    else
                    {
                        FunctionHelper.StartFunc(WebFunction.MobileEmailNaviToReceiveBox, null);
                    }
                }
            }
        }

        private void mi_RMatch_Click(object sender, EventArgs e)
        {
            this._frameworkWnd.ContactManager.ShowRadomMatchWindow();
        }

        public void mi_SendFileToMe_Click(object sender, EventArgs e)
        {
            this._frameworkWnd.ConversationManager.SendFileToSelf(this._frameworkWnd.MainWindow);
        }

        public void mi_SendSmsToMe_Click(object sender, EventArgs e)
        {
            this._frameworkWnd.ConversationManager.StartConversation(this._frameworkWnd.MainWindow, ConversationOperation.SmsChat, new string[] { this._frameworkWnd.AccountManager.CurrentUser.Uri.Raw });
        }

        private void mi_Sms_Click(object sender, EventArgs e)
        {
            try
            {
                this._frameworkWnd.ConversationManager.StartConversation(this._frameworkWnd.MainWindow, ConversationOperation.SmsChat, null);
            }
            catch
            {
            }
        }

        public void miAddContact_Click(object sender, EventArgs e)
        {
            try
            {
                this.ShowAddBuddyWindow(null, string.Empty, null, string.Empty, null, ContactType.ImpsContact);
            }
            catch (Exception exception)
            {
                this._frameworkWnd.UnifiedMessageBox.ShowException(exception);
            }
        }

        private void miAddGroup_Click(object sender, EventArgs e)
        {
            try
            {
                this.ShowGroupCreateWindow(this._frameworkWnd.MainWindow);
            }
            catch (Exception exception)
            {
                this._frameworkWnd.UnifiedMessageBox.ShowException(exception);
            }
        }

        private void miExport_Click(object sender, EventArgs e)
        {
            try
            {
                this._frameworkWnd.ImportExportManager.Export();
            }
            catch (ApplicationException exception)
            {
                this._frameworkWnd.UnifiedMessageBox.ShowError(exception.Message);
            }
            catch (Exception exception2)
            {
                this._frameworkWnd.UnifiedMessageBox.ShowException(exception2);
            }
        }

        private void miImport_Click(object sender, EventArgs e)
        {
            try
            {
                this._frameworkWnd.ImportExportManager.Import();
            }
            catch (Exception exception)
            {
                this._frameworkWnd.UnifiedMessageBox.ShowException(exception);
            }
        }

        private void miInviteIIC_Click(object sender, EventArgs e)
        {
            try
            {
                this.ShowInviteIICWindow(null);
            }
            catch
            {
            }
        }

        public void RemoveFromBlackList(IicUri uri, AsyncBizOperation op)
        {
            if (uri.IsValid)
            {
                this._user.ContactList.AsyncRemoveFromBlackList(uri, op);
            }
        }

        public void ShowAddBuddyWindow(IWin32Window owner, string mobileNo, long? sid, string desc, int? targetGroupId, ContactType contactType)
        {
            SendRequestForm innerSendRequestFrom = this.InnerSendRequestFrom;
            innerSendRequestFrom.MobileNo = mobileNo;
            innerSendRequestFrom.Sid = sid;
            innerSendRequestFrom.Desc = desc;
            innerSendRequestFrom.TargetGroupId = targetGroupId;
            innerSendRequestFrom.ContactType = contactType;
            Form parent = owner as Form;
            if (parent == null)
            {
                parent = (Form) this._frameworkWnd;
            }
            ControlHelper.ShowFormCenterOnParent(innerSendRequestFrom, parent);
        }

        public void ShowConditionalMatchWindow()
        {
            this._frameworkWnd.NavigateToTab("BuddyMatch", "status=2");
        }

        public void ShowContactDeleteWindow(IicUri iicUri)
        {
            ContactDelete form = new ContactDelete(this._frameworkWnd, iicUri.Raw);
            ControlHelper.ShowDialogCenterOnParent(form, this._frameworkWnd.MainWindow, true);
        }

        public void ShowContactDetail(string contactUri)
        {
            this.ShowContactDetail(null, contactUri);
        }

        public void ShowContactDetail(IWin32Window owner, string contactUri)
        {
            FormClosedEventHandler handler = null;
            FormClosedEventHandler handler2 = null;
            IicUri uri = new IicUri(contactUri);
            if (uri.IsValid && uri.IsContact)
            {
                ProfileForm form;
                ProfileFormVodafone vodafone;
                string text = contactUri.ToLower();
                if (this.ProfileForms.TryGetValue(text, ref form) && !form.IsHandleCreated)
                {
                    this.ProfileForms.Remove(text);
                    form = null;
                }
                if (this.ProfileFormsVodafone.TryGetValue(text, ref vodafone) && !vodafone.IsHandleCreated)
                {
                    this.ProfileFormsVodafone.Remove(text);
                    vodafone = null;
                }
                if (!uri.IsVodafoneUri)
                {
                    if (vodafone != null)
                    {
                        vodafone.Close();
                    }
                    if (form == null)
                    {
                        Imps.Client.Core.Contact contact = this._user.ContactList.FindOrCreateContact(contactUri, null);
                        form = new ProfileForm(this._frameworkWnd, contact);
                        if (handler == null)
                        {
                            handler = new FormClosedEventHandler(this, (IntPtr) this.<ShowContactDetail>b__4);
                        }
                        form.add_FormClosed(handler);
                        this.ProfileForms.Add(text, form);
                    }
                    if (form.Visible)
                    {
                        form.BringToFront();
                        form.Activate();
                    }
                    else
                    {
                        Form form2 = owner as Form;
                        if (form2 == null)
                        {
                            form2 = (Form) this._frameworkWnd;
                        }
                        form.ShowProfile(form2);
                    }
                }
                else
                {
                    if (form != null)
                    {
                        form.Close();
                    }
                    if (vodafone == null)
                    {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -