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

📄 singleivrform.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
namespace Imps.Client.Pc
{
    using Imps.Client;
    using Imps.Client.Core;
    using Imps.Client.Pc.BizControls;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Pc.Theme;
    using Imps.Client.Resource;
    using Imps.Client.Utils;
    using Imps.Utils;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class SingleIVRForm : IVRFormBase
    {
        private int _startTickets;
        private XButton btnCancel;
        private XButton btnClose;
        private IContainer components;
        private XLabel label1;
        private XLabel lblChargeInfo;
        private XLabel lblContact;
        private XLabel lblCurrentUser;
        private XLabel lblInviteInfo;
        private XLabel lblStatus;
        private Panel panel1;
        private DisplayPortrait picContact;
        private DisplayPortrait PicOwner;
        private PictureBox picWait;

        public SingleIVRForm(IFrameworkWindow frameworkWnd, Imps.Client.Pc.IVRManager manager, IVRDialog dialog) : base(frameworkWnd, manager, dialog)
        {
            this.InitializeComponent();
            this.initComponentRegion();
            this.lblInviteInfo.Text = "您正在发起手机语聊,请等待对方接受邀请。";
            this.lblChargeInfo.Text = base.ChargeInfo;
            this.lblContact.UseMnemonic = false;
            this.lblCurrentUser.UseMnemonic = false;
            this.lblInviteInfo.UseMnemonic = false;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            UiErrorHelper.HandEventSafely(base.FrameworkWindow, delegate {
                base.Close();
            });
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void Contact_Presence_PropertiesChanged(object sender, PropertiesChangedEventArgs e)
        {
            if (e.ContainsAnyOfProperties(new string[] { "MoodPhrase" }))
            {
                Imps.Client.Core.Contact owner = (sender as ContactPresence).Owner;
                this.ShowContactNameInfo(owner);
            }
        }

        private void Contact_PropertiesChanged(object sender, PropertiesChangedEventArgs ev)
        {
            Imps.Client.Core.Contact owner = (sender as Imps.Client.Core.ContactInfo).Owner;
            if (ev.ContainsProperty("Portrait"))
            {
                ControlHelper.FadeinImage(this.picContact, owner.PersonalInfo.Portrait);
            }
            this.ShowContactNameInfo(owner);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FormatForm(string status, string inviteInfo)
        {
            this.lblStatus.ForeColor = Color.DarkOrchid;
            this.lblStatus.Text = status;
            this.lblInviteInfo.ForeColor = Color.DarkOrchid;
            this.lblInviteInfo.Text = inviteInfo;
            this.btnCancel.Visible = false;
            this.btnClose.Visible = true;
            if (!base.IsDisposed && !base.IsActived)
            {
                ControlHelper.FlashWindow(this);
            }
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(SingleIVRForm));
            this.panel1 = new Panel();
            this.lblChargeInfo = new XLabel();
            this.lblStatus = new XLabel();
            this.picWait = new PictureBox();
            this.lblContact = new XLabel();
            this.lblCurrentUser = new XLabel();
            this.lblInviteInfo = new XLabel();
            this.label1 = new XLabel();
            this.PicOwner = new DisplayPortrait();
            this.picContact = new DisplayPortrait();
            this.btnClose = new XButton();
            this.btnCancel = new XButton();
            this.panel1.SuspendLayout();
            this.picWait.BeginInit();
            base.SuspendLayout();
            this.panel1.BackColor = Color.Transparent;
            this.panel1.Controls.Add(this.lblChargeInfo);
            this.panel1.Controls.Add(this.lblStatus);
            this.panel1.Controls.Add(this.picWait);
            this.panel1.Controls.Add(this.lblContact);
            this.panel1.Controls.Add(this.lblCurrentUser);
            this.panel1.Controls.Add(this.lblInviteInfo);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.PicOwner);
            this.panel1.Controls.Add(this.picContact);
            this.panel1.Location = new System.Drawing.Point(5, 0x21);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x1a2, 0x11c);
            this.panel1.TabIndex = 0;
            this.lblChargeInfo.BorderColor = Color.Empty;
            this.lblChargeInfo.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblChargeInfo.ForeColor = Color.DarkOrchid;
            this.lblChargeInfo.Location = new System.Drawing.Point(0x85, 0x6c);
            this.lblChargeInfo.Name = "lblChargeInfo";
            this.lblChargeInfo.Size = new Size(0x110, 30);
            this.lblChargeInfo.TabIndex = 0x13;
            this.lblChargeInfo.Text = "资费请咨询当地10086";
            this.lblStatus.set_AutoSize(true);
            this.lblStatus.BorderColor = Color.Empty;
            this.lblStatus.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblStatus.Location = new System.Drawing.Point(0xac, 0xe1);
            this.lblStatus.Name = "lblStatus";
            this.lblStatus.Size = new Size(0x34, 13);
            this.lblStatus.TabIndex = 6;
            this.lblStatus.Text = "邀请中...";
            this.picWait.Location = new System.Drawing.Point(0x85, 0xd7);
            this.picWait.Name = "picWait";
            this.picWait.Size = new Size(0x24, 0x24);
            this.picWait.SizeMode = PictureBoxSizeMode.CenterImage;
            this.picWait.TabIndex = 0x12;
            this.picWait.TabStop = false;
            this.lblContact.set_AutoEllipsis(true);
            this.lblContact.BorderColor = Color.Empty;
            this.lblContact.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblContact.Location = new System.Drawing.Point(0x85, 0xbb);
            this.lblContact.Name = "lblContact";
            this.lblContact.Size = new Size(0x110, 0x17);
            this.lblContact.TabIndex = 5;
            this.lblCurrentUser.set_AutoEllipsis(true);
            this.lblCurrentUser.BorderColor = Color.Empty;
            this.lblCurrentUser.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblCurrentUser.Location = new System.Drawing.Point(0x85, 0x18);
            this.lblCurrentUser.Name = "lblCurrentUser";
            this.lblCurrentUser.set_Padding(new Padding(0, 1, 0, 1));
            this.lblCurrentUser.Size = new Size(0x110, 0x10);
            this.lblCurrentUser.TabIndex = 1;
            this.lblInviteInfo.set_AutoEllipsis(true);
            this.lblInviteInfo.BorderColor = Color.Empty;
            this.lblInviteInfo.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblInviteInfo.Location = new System.Drawing.Point(0x85, 0x30);
            this.lblInviteInfo.Name = "lblInviteInfo";
            this.lblInviteInfo.Size = new Size(0x110, 0x3b);
            this.lblInviteInfo.TabIndex = 2;
            this.lblInviteInfo.Text = "您正在发起手机语聊,请等待对方接受邀请。";
            this.lblInviteInfo.UseMnemonic = false;
            this.label1.BorderColor = Color.Empty;
            this.label1.BorderStyle = BorderStyle.Fixed3D;
            this.label1.ButtonBorderStyle = ButtonBorderStyle.None;
            this.label1.Location = new System.Drawing.Point(11, 0x8e);
            this.label1.Name = "label1";
            this.label1.Size = new Size(390, 2);
            this.label1.TabIndex = 3;
            this.PicOwner.BackColor = Color.White;
            this.PicOwner.BorderColor = Color.FromArgb(0xa4, 170, 220);
            this.PicOwner.Image = (Image) manager.GetObject("PicOwner.Image");
            this.PicOwner.Location = new System.Drawing.Point(7, 9);
            this.PicOwner.Name = "PicOwner";
            this.PicOwner.Size = new Size(0x76, 0x76);
            this.PicOwner.TabIndex = 0;
            this.PicOwner.ToolTipText = "";
            this.PicOwner.Click += new EventHandler(this.PicCurrentUser_Click);
            this.picContact.BackColor = Color.White;
            this.picContact.BorderColor = Color.FromArgb(0xa4, 170, 220);
            this.picContact.Image = (Image) manager.GetObject("picContact.Image");
            this.picContact.Location = new System.Drawing.Point(7, 0x9e);
            this.picContact.Name = "picContact";
            this.picContact.Size = new Size(0x76, 0x76);
            this.picContact.TabIndex = 4;
            this.picContact.ToolTipText = "";
            this.picContact.Click += new EventHandler(this.picContact_Click);

⌨️ 快捷键说明

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