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

📄 singleivrform.cs

📁 飞信的收发使用csharp进行开发
💻 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 HtmlLabel lblContact;
        private HtmlLabel 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()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(SingleIVRForm));
            this.panel1 = new Panel();
            this.lblChargeInfo = new XLabel();
            this.lblStatus = new XLabel();
            this.picWait = new PictureBox();
            this.btnClose = new XButton();
            this.btnCancel = new XButton();
            this.lblContact = new HtmlLabel();
            this.lblCurrentUser = new HtmlLabel();
            this.lblInviteInfo = new XLabel();
            this.label1 = new XLabel();
            this.PicOwner = new DisplayPortrait();
            this.picContact = new DisplayPortrait();
            this.panel1.SuspendLayout();
            ((ISupportInitialize) 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.btnClose);
            this.panel1.Controls.Add(this.btnCancel);
            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.Dock = DockStyle.Fill;
            this.panel1.Location = new Point(5, 0x21);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x1a5, 0x14d);
            this.panel1.TabIndex = 0;
            this.lblChargeInfo.BorderColor = Color.Empty;
            this.lblChargeInfo.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblChargeInfo.ForeColor = Color.DarkOrchid;
            this.lblChargeInfo.Location = new Point(0x85, 0x5e);
            this.lblChargeInfo.Name = "lblChargeInfo";
            this.lblChargeInfo.Size = new Size(0x119, 0x23);
            this.lblChargeInfo.TabIndex = 0x13;
            this.lblChargeInfo.Text = "资费请咨询当地10086";
            this.lblStatus.AutoSize = true;
            this.lblStatus.BorderColor = Color.Empty;
            this.lblStatus.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblStatus.Location = new Point(0xb5, 0xe1);
            this.lblStatus.Name = "lblStatus";
            this.lblStatus.Size = new Size(0x34, 13);
            this.lblStatus.TabIndex = 6;
            this.lblStatus.Text = "邀请中...";
            this.picWait.Location = new Point(0x8a, 0xd7);
            this.picWait.Name = "picWait";
            this.picWait.Size = new Size(0x24, 0x24);
            this.picWait.TabIndex = 0x12;
            this.picWait.TabStop = false;
            this.btnClose.BackColor = SystemColors.Window;
            this.btnClose.Location = new Point(0xb8, 0x127);
            this.btnClose.Name = "btnClose";
            this.btnClose.Size = new Size(0x67, 0x17);
            this.btnClose.TabIndex = 8;
            this.btnClose.Text = "关闭";
            this.btnClose.UseVisualStyleBackColor = false;
            this.btnClose.Visible = false;
            this.btnClose.Click += new EventHandler(this.btnClose_Click);
            this.btnCancel.BackColor = SystemColors.Window;
            this.btnCancel.Location = new Point(0x44, 0x127);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x11d, 0x17);
            this.btnCancel.TabIndex = 0;
            this.btnCancel.Text = "点击这里可以取消通话(120秒后自动取消)";
            this.btnCancel.UseVisualStyleBackColor = false;
            this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
            this.lblContact.AutoEllipsis = true;
            this.lblContact.LinkColor = Color.Blue;
            this.lblContact.Location = new Point(0x87, 0xbb);
            this.lblContact.Name = "lblContact";
            this.lblContact.ParseEmotion = true;
            this.lblContact.Size = new Size(0x117, 20);
            this.lblContact.SpaceDistance = 6;
            this.lblContact.TabIndex = 5;
            this.lblCurrentUser.AutoEllipsis = true;
            this.lblCurrentUser.LinkColor = Color.Blue;
            this.lblCurrentUser.Location = new Point(0x87, 0x18);
            this.lblCurrentUser.Name = "lblCurrentUser";
            this.lblCurrentUser.ParseEmotion = true;
            this.lblCurrentUser.Size = new Size(0x10a, 20);
            this.lblCurrentUser.SpaceDistance = 6;
            this.lblCurrentUser.TabIndex = 1;
            this.lblInviteInfo.AutoEllipsis = true;
            this.lblInviteInfo.BorderColor = Color.Empty;
            this.lblInviteInfo.ButtonBorderStyle = ButtonBorderStyle.None;
            this.lblInviteInfo.Location = new Point(0x85, 0x30);
            this.lblInviteInfo.Name = "lblInviteInfo";
            this.lblInviteInfo.Size = new Size(0x110, 40);

⌨️ 快捷键说明

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