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

📄 extendinfocontrol.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
            this.xtbAge.BorderStyle = BorderStyle.FixedSingle;
            this.xtbAge.EmptyTextTip = "";
            this.xtbAge.EmptyTextTipColor = Color.DarkGray;
            this.xtbAge.Location = new System.Drawing.Point(0x5e, 0x33);
            this.xtbAge.MaxLength = 0x7fff;
            this.xtbAge.Name = "xtbAge";
            this.xtbAge.ReadOnly = true;
            this.xtbAge.Size = new Size(0x74, 20);
            this.xtbAge.TabIndex = 0x19;
            this.xctlBirthdate.set_AutoSize(true);
            this.xctlBirthdate.set_AutoSizeMode(0);
            this.xctlBirthdate.BackColor = Color.Transparent;
            this.xctlBirthdate.Location = new System.Drawing.Point(0x5e, 0x13);
            this.xctlBirthdate.MaxDateTime = new DateTime(0x7d6, 5, 0x12, 0, 0, 0, 0);
            this.xctlBirthdate.MinDateTime = new DateTime((long) 0);
            this.xctlBirthdate.Name = "xctlBirthdate";
            this.xctlBirthdate.NullYear = 0x76c;
            this.xctlBirthdate.SelectedDateTime = new DateTime(0x76c, 1, 1, 0, 0, 0, 0);
            this.xctlBirthdate.SelectedDay = 1;
            this.xctlBirthdate.SelectedMonth = 1;
            this.xctlBirthdate.SelectedYearText = "";
            this.xctlBirthdate.Size = new Size(0xa7, 0x18);
            this.xctlBirthdate.TabIndex = 0x18;
            this.xLabel5.set_AutoSize(true);
            this.xLabel5.BorderColor = Color.Empty;
            this.xLabel5.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel5.Location = new System.Drawing.Point(0x36, 110);
            this.xLabel5.Name = "xLabel5";
            this.xLabel5.Size = new Size(0x22, 13);
            this.xLabel5.TabIndex = 0x17;
            this.xLabel5.Text = "生肖:";
            this.xLabel5.UseMnemonic = false;
            this.xLabel4.set_AutoSize(true);
            this.xLabel4.BorderColor = Color.Empty;
            this.xLabel4.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel4.Location = new System.Drawing.Point(0x36, 140);
            this.xLabel4.Name = "xLabel4";
            this.xLabel4.Size = new Size(0x22, 13);
            this.xLabel4.TabIndex = 0x17;
            this.xLabel4.Text = "星座:";
            this.xLabel4.UseMnemonic = false;
            this.xLabel3.set_AutoSize(true);
            this.xLabel3.BorderColor = Color.Empty;
            this.xLabel3.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel3.Location = new System.Drawing.Point(0x36, 0x17);
            this.xLabel3.Name = "xLabel3";
            this.xLabel3.Size = new Size(0x22, 13);
            this.xLabel3.TabIndex = 0x17;
            this.xLabel3.Text = "生日:";
            this.xLabel3.UseMnemonic = false;
            this.xLabel1.set_AutoSize(true);
            this.xLabel1.BorderColor = Color.Empty;
            this.xLabel1.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel1.Location = new System.Drawing.Point(0x36, 0x35);
            this.xLabel1.Name = "xLabel1";
            this.xLabel1.Size = new Size(0x22, 13);
            this.xLabel1.TabIndex = 0x17;
            this.xLabel1.Text = "年龄:";
            this.xLabel1.UseMnemonic = false;
            this.xLabel2.set_AutoSize(true);
            this.xLabel2.BorderColor = Color.Empty;
            this.xLabel2.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel2.Location = new System.Drawing.Point(0x36, 0x53);
            this.xLabel2.Name = "xLabel2";
            this.xLabel2.Size = new Size(0x22, 13);
            this.xLabel2.TabIndex = 0x17;
            this.xLabel2.Text = "血型:";
            this.xLabel2.UseMnemonic = false;
            this.groupBox2.Controls.Add(this.xtbCompany);
            this.groupBox2.Controls.Add(this.xtbCompanyWebsite);
            this.groupBox2.Controls.Add(this.xtbJobTitle);
            this.groupBox2.Controls.Add(this.lblCompany);
            this.groupBox2.Controls.Add(this.lblJobTitle);
            this.groupBox2.Controls.Add(this.lblCompanyWebsite);
            this.groupBox2.Location = new System.Drawing.Point(3, 0xb3);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new Size(0x16c, 0x7b);
            this.groupBox2.TabIndex = 0x19;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "商务信息";
            this.groupBox3.Controls.Add(this.xtbPhone);
            this.groupBox3.Controls.Add(this.xtbEmail);
            this.groupBox3.Controls.Add(this.xLabel6);
            this.groupBox3.Controls.Add(this.xLabel7);
            this.groupBox3.Location = new System.Drawing.Point(3, 0x134);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new Size(0x16c, 0x55);
            this.groupBox3.TabIndex = 0x19;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "联系方式";
            this.xtbPhone.BackColor = Color.FromArgb(240, 240, 240);
            this.xtbPhone.BorderStyle = BorderStyle.FixedSingle;
            this.xtbPhone.EmptyTextTip = "";
            this.xtbPhone.EmptyTextTipColor = Color.DarkGray;
            this.xtbPhone.Location = new System.Drawing.Point(0x5e, 0x18);
            this.xtbPhone.MaxLength = 0x80;
            this.xtbPhone.Name = "xtbPhone";
            this.xtbPhone.ReadOnly = true;
            this.xtbPhone.Size = new Size(0xee, 20);
            this.xtbPhone.TabIndex = 1;
            this.xtbEmail.BackColor = Color.FromArgb(240, 240, 240);
            this.xtbEmail.BorderStyle = BorderStyle.FixedSingle;
            this.xtbEmail.EmptyTextTip = "";
            this.xtbEmail.EmptyTextTipColor = Color.DarkGray;
            this.xtbEmail.Location = new System.Drawing.Point(0x5e, 0x35);
            this.xtbEmail.MaxLength = 0x80;
            this.xtbEmail.Name = "xtbEmail";
            this.xtbEmail.ReadOnly = true;
            this.xtbEmail.Size = new Size(0xee, 20);
            this.xtbEmail.TabIndex = 2;
            this.xLabel6.set_AutoSize(true);
            this.xLabel6.BorderColor = Color.Empty;
            this.xLabel6.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel6.Location = new System.Drawing.Point(30, 0x37);
            this.xLabel6.Name = "xLabel6";
            this.xLabel6.Size = new Size(0x3a, 13);
            this.xLabel6.TabIndex = 0x17;
            this.xLabel6.Text = "电子邮件:";
            this.xLabel6.UseMnemonic = false;
            this.xLabel7.set_AutoSize(true);
            this.xLabel7.BorderColor = Color.Empty;
            this.xLabel7.ButtonBorderStyle = ButtonBorderStyle.None;
            this.xLabel7.Location = new System.Drawing.Point(30, 0x1a);
            this.xLabel7.Name = "xLabel7";
            this.xLabel7.Size = new Size(0x3a, 13);
            this.xLabel7.TabIndex = 0x17;
            this.xLabel7.Text = "电话号码:";
            this.xLabel7.UseMnemonic = false;
            base.set_AutoScaleDimensions(new SizeF(6f, 13f));
            base.set_AutoScaleMode(1);
            this.BackColor = Color.Transparent;
            base.Controls.Add(this.groupBox3);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.groupBox1);
            base.Name = "ExtendInfoControl";
            base.Size = new Size(370, 0x199);
            base.Load += new EventHandler(this.BusinessProfileControl_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            base.ResumeLayout(false);
        }

        private void PersonalInfo_PropertiesChanged(object sender, PropertiesChangedEventArgs e)
        {
            if (e.ContainsAnyOfProperties(new string[] { 
                "birth-date", "birthday-valid", "Age", "blood-type", "lunar-animal", "horoscope", "company", "company-website", "job-title", "home-phone", "work-phone", "other-phone", "email", "personal-email", "primary-email", "other-email", 
                "alias", "work-email"
             }))
            {
                this.UpdateData(false);
            }
        }

        public override bool UpdateData(bool update)
        {
            SimpleEventHandler handler = null;
            if (!update)
            {
                if (handler == null)
                {
                    handler = delegate {
                        if (this._contact.PersonalInfo.BirthDate.Value.Year > PersonalInfoBase.NullBirthDate.Year)
                        {
                            this.xctlBirthdate.SelectedDateTime = new DateTime?(this._contact.PersonalInfo.BirthDate.Value);
                        }
                        else
                        {
                            this.xctlBirthdate.SelectedYearText = string.Empty;
                        }
                        if (this._contact.PersonalInfo.IsBirthdayValid != null)
                        {
                            this.xctlBirthdate.SelectedMonth = this._contact.PersonalInfo.BirthDate.Value.Month;
                            this.xctlBirthdate.SelectedDay = this._contact.PersonalInfo.BirthDate.Value.Day;
                            this.FormatHoroscopeAndLunarAnimal();
                        }
                        else
                        {
                            this.xctlBirthdate.SelectedMonth = 0;
                            this.xctlBirthdate.SelectedDay = 0;
                            this.xtbHoroscope.Text = IMPSEnums.GetEnumDescription<Horoscope>(this._contact.PersonalInfo.Horoscope);
                            this.xtbLunarA.Text = IMPSEnums.GetEnumDescription<LunarAnimal>(this._contact.PersonalInfo.LunarAnimal);
                        }
                        this.xctlBirthdate.SelectedDateTimeChange += new EventHandler(this.ctlDateTime_DateTimeChange);
                        int age = this._contact.PersonalInfo.Age;
                        this.xtbAge.Text = (((age > 0x63) || (age < 2)) ? 0 : age).ToString();
                        this.xcbBloodType.SelectedValue = this._contact.PersonalInfo.BloodType.Value;
                        this.xtbCompany.Text = this._contact.PersonalInfo.Company.Value;
                        this.xtbCompanyWebsite.Text = this._contact.PersonalInfo.CompanyWebsite.Value;
                        this.xtbJobTitle.Text = this._contact.PersonalInfo.JobTitle.Value;
                        if (this._contact.PersonalInfo.WorkPhone.Value.Length != 0)
                        {
                            this.xtbPhone.Text = this._contact.PersonalInfo.WorkPhone.Value;
                        }
                        else if (this._contact.PersonalInfo.HomePhone.Value.Length != 0)
                        {
                            this.xtbPhone.Text = this._contact.PersonalInfo.HomePhone.Value;
                        }
                        else
                        {
                            this.xtbPhone.Text = this._contact.PersonalInfo.OtherPhone.Value;
                        }
                        if (this._contact.PersonalInfo.PrimaryEmail.Value == 1)
                        {
                            this.xtbEmail.Text = this._contact.PersonalInfo.PersonalEmail.Value;
                        }
                        else if (this._contact.PersonalInfo.PrimaryEmail.Value == 2)
                        {
                            this.xtbEmail.Text = this._contact.PersonalInfo.WorkEmail.Value;
                        }
                        else if (this._contact.PersonalInfo.PrimaryEmail.Value == 3)
                        {
                            this.xtbEmail.Text = this._contact.PersonalInfo.OtherEmail.Value;
                        }
                        else if (this._contact.PersonalInfo.PersonalEmail.Value.Length != 0)
                        {
                            this.xtbEmail.Text = this._contact.PersonalInfo.PersonalEmail.Value;
                        }
                        else if (this._contact.PersonalInfo.WorkEmail.Value.Length != 0)
                        {
                            this.xtbEmail.Text = this._contact.PersonalInfo.WorkEmail.Value;
                        }
                        else
                        {
                            this.xtbEmail.Text = this._contact.PersonalInfo.OtherEmail.Value;
                        }
                        if (!string.IsNullOrEmpty((string) this._contact.PersonalInfo.MobileMailAlias))
                        {
                            this.xtbEmail.Text = ((string) this._contact.PersonalInfo.MobileMailAlias) + "@139.com";
                        }
                    };
                }
                UiErrorHelper.HandEventSafely(this._iFrameworkWindow, handler);
            }
            return true;
        }
    }
}

⌨️ 快捷键说明

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