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

📄 initbizprofile.cs

📁 飞信的收发使用csharp进行开发
💻 CS
字号:
namespace Imps.Client.Pc.Provsion2
{
    using Imps.Client.Core;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Utils;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class InitBizProfile : ProfileControlBase
    {
        private IContainer components;
        private XLabel lblBasicInfo;
        private XLabel lblCompany;
        private XLabel lblCompanyWebsite;
        private XLabel lblJobTitle;
        private XLabel lblSeperate;
        private TextBox txtCompany;
        private TextBox txtCompanyWebsite;
        private TextBox txtJobTitle;

        public InitBizProfile(ProvsionData pdata) : base(pdata)
        {
            this.InitializeComponent();
            this.LoadResource();
            this.Init();
        }

        private bool CheckData()
        {
            this.txtCompany.Text = this.txtCompany.Text.Trim();
            this.txtCompanyWebsite.Text = this.txtCompanyWebsite.Text.Trim();
            this.txtJobTitle.Text = this.txtJobTitle.Text.Trim();
            return true;
        }

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

        public override bool GetValidData()
        {
            if (this.CheckData())
            {
                base._pdata.ProvsionUserInfo.Company.ProposedValue = this.txtCompany.Text;
                base._pdata.ProvsionUserInfo.CompanyWebsite.ProposedValue = this.txtCompanyWebsite.Text;
                base._pdata.ProvsionUserInfo.JobTitle.ProposedValue = this.txtJobTitle.Text;
                return true;
            }
            return false;
        }

        private void Init()
        {
            this.txtCompany.MaxLength = 0x80;
            this.txtCompanyWebsite.MaxLength = 0x80;
            this.txtJobTitle.MaxLength = 0x40;
            this.txtCompany.Text = (string) base._pdata.ProvsionUserInfo.Company;
            this.txtCompanyWebsite.Text = (string) base._pdata.ProvsionUserInfo.CompanyWebsite;
            this.txtJobTitle.Text = (string) base._pdata.ProvsionUserInfo.JobTitle;
            ControlHelper.ForceControlImeHangul(this.txtCompany);
            ControlHelper.ForceControlImeHangul(this.txtCompanyWebsite);
            ControlHelper.ForceControlImeHangul(this.txtJobTitle);
        }

        private void InitializeComponent()
        {
            this.lblCompany = new XLabel();
            this.txtCompany = new TextBox();
            this.lblCompanyWebsite = new XLabel();
            this.txtCompanyWebsite = new TextBox();
            this.lblJobTitle = new XLabel();
            this.txtJobTitle = new TextBox();
            this.lblBasicInfo = new XLabel();
            this.lblSeperate = new XLabel();
            base.SuspendLayout();
            this.lblCompany.AutoEllipsis = false;
            this.lblCompany.AutoSize = true;
            this.lblCompany.BorderColor = Color.Black;
            this.lblCompany.BorderStyle = BorderStyle.None;
            this.lblCompany.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lblCompany.Location = new Point(0x11, 0x23);
            this.lblCompany.Name = "lblCompany";
            this.lblCompany.Size = new Size(0x39, 13);
            this.lblCompany.TabIndex = 2;
            this.lblCompany.Text = "公司名称";
            this.lblCompany.TextAlign = ContentAlignment.TopLeft;
            this.lblCompany.UseMnemonic = false;
            this.txtCompany.Location = new Point(20, 0x37);
            this.txtCompany.MaxLength = 0x80;
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Size = new Size(320, 20);
            this.txtCompany.TabIndex = 3;
            this.lblCompanyWebsite.AutoEllipsis = false;
            this.lblCompanyWebsite.AutoSize = true;
            this.lblCompanyWebsite.BorderColor = Color.Black;
            this.lblCompanyWebsite.BorderStyle = BorderStyle.None;
            this.lblCompanyWebsite.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lblCompanyWebsite.Location = new Point(0x11, 0x56);
            this.lblCompanyWebsite.Name = "lblCompanyWebsite";
            this.lblCompanyWebsite.Size = new Size(0x39, 13);
            this.lblCompanyWebsite.TabIndex = 4;
            this.lblCompanyWebsite.Text = "公司主页";
            this.lblCompanyWebsite.TextAlign = ContentAlignment.TopLeft;
            this.lblCompanyWebsite.UseMnemonic = false;
            this.txtCompanyWebsite.Location = new Point(20, 0x6a);
            this.txtCompanyWebsite.MaxLength = 0x80;
            this.txtCompanyWebsite.Name = "txtCompanyWebsite";
            this.txtCompanyWebsite.Size = new Size(320, 20);
            this.txtCompanyWebsite.TabIndex = 5;
            this.lblJobTitle.AutoEllipsis = false;
            this.lblJobTitle.AutoSize = true;
            this.lblJobTitle.BorderColor = Color.Black;
            this.lblJobTitle.BorderStyle = BorderStyle.None;
            this.lblJobTitle.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lblJobTitle.Location = new Point(0x11, 0x89);
            this.lblJobTitle.Name = "lblJobTitle";
            this.lblJobTitle.Size = new Size(0x39, 13);
            this.lblJobTitle.TabIndex = 6;
            this.lblJobTitle.Text = "职  位";
            this.lblJobTitle.TextAlign = ContentAlignment.TopLeft;
            this.lblJobTitle.UseMnemonic = false;
            this.txtJobTitle.Location = new Point(20, 0x9d);
            this.txtJobTitle.MaxLength = 0x100;
            this.txtJobTitle.Name = "txtJobTitle";
            this.txtJobTitle.Size = new Size(320, 20);
            this.txtJobTitle.TabIndex = 7;
            this.lblBasicInfo.AutoEllipsis = false;
            this.lblBasicInfo.AutoSize = true;
            this.lblBasicInfo.BorderColor = Color.Black;
            this.lblBasicInfo.BorderStyle = BorderStyle.None;
            this.lblBasicInfo.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lblBasicInfo.Location = new Point(5, 11);
            this.lblBasicInfo.Name = "lblBasicInfo";
            this.lblBasicInfo.Size = new Size(0x39, 13);
            this.lblBasicInfo.TabIndex = 0;
            this.lblBasicInfo.Text = "商务信息";
            this.lblBasicInfo.TextAlign = ContentAlignment.TopLeft;
            this.lblBasicInfo.UseMnemonic = false;
            this.lblSeperate.AutoEllipsis = false;
            this.lblSeperate.BorderColor = Color.Black;
            this.lblSeperate.BorderStyle = BorderStyle.Fixed3D;
            this.lblSeperate.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lblSeperate.Location = new Point(0x44, 0x10);
            this.lblSeperate.Name = "lblSeperate";
            this.lblSeperate.Size = new Size(300, 2);
            this.lblSeperate.TabIndex = 1;
            this.lblSeperate.TextAlign = ContentAlignment.TopLeft;
            this.lblSeperate.UseMnemonic = false;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.txtJobTitle);
            base.Controls.Add(this.txtCompanyWebsite);
            base.Controls.Add(this.txtCompany);
            base.Controls.Add(this.lblJobTitle);
            base.Controls.Add(this.lblCompanyWebsite);
            base.Controls.Add(this.lblCompany);
            base.Controls.Add(this.lblBasicInfo);
            base.Controls.Add(this.lblSeperate);
            base.Margin = new Padding(0);
            base.Name = "InitBizProfile";
            base.Size = new Size(360, 400);
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        private void LoadResource()
        {
        }

        public override int ID
        {
            get
            {
                return 2;
            }
        }
    }
}

⌨️ 快捷键说明

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