📄 importform.cs
字号:
this.comboBoxGroup.DropDownStyle = ComboBoxStyle.DropDownList;
this.comboBoxGroup.Items.Clear();
lock (this.CurrentUser.ContactList.Groups.SyncRoot)
{
using (IEnumerator<ContactGroupBase> enumerator = this.CurrentUser.ContactList.Groups.GetEnumerator())
{
while (enumerator.MoveNext())
{
Imps.Client.Core.ContactGroup group = (Imps.Client.Core.ContactGroup) enumerator.get_Current();
if (group.Id != -1)
{
ComboBoxItem item = new ComboBoxItem(group.Name, group.Id);
this.comboBoxGroup.Items.Add(item);
if (this._initTargetGroupId.get_HasValue())
{
int? nullable = this._initTargetGroupId;
if ((nullable.GetValueOrDefault() == group.Id) && nullable.get_HasValue())
{
this.comboBoxGroup.SelectedItem = item;
}
}
}
}
}
}
if (this._initTargetGroupId.get_HasValue())
{
int? nullable2 = this._initTargetGroupId;
if (!((nullable2.GetValueOrDefault() == -1) && nullable2.get_HasValue()))
{
return;
}
}
if (this.comboBoxGroup.Items.Count > 0)
{
this.comboBoxGroup.SelectedIndex = 0;
}
}
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(ImportForm));
this.lblDescription = new XLabel();
this.lblSelectPlugin = new XLabel();
this.pnlStep_SelSource = new Panel();
this.groupBox1 = new GroupBox();
this.panelOutlookRead = new Panel();
this.label3 = new Label();
this.progressOutLook = new ProgressBar();
this.panelFileSel = new Panel();
this.btnBrowse = new XButton();
this.label2 = new Label();
this.txtFilePath = new TextBox();
this.panelOutlookDes = new Panel();
this.rbFile = new RadioButton();
this.rbOutlook = new RadioButton();
this.linkLabelHelp = new LinkLabel();
this.xLabel2 = new XLabel();
this.btnCancel = new XButton();
this.btnNext = new XButton();
this.btnPrevious = new XButton();
this.pnlContainer = new Panel();
this.pnlStep_SelContact = new Panel();
this.checkBoxSelAll = new CheckBox();
this.xLabelFind = new XLabel();
this.lblSelectInfo = new XLabel();
this.lstContacts = new ListView();
this.chCheckBox = new ColumnHeader();
this.chName = new ColumnHeader();
this.chNickname = new ColumnHeader();
this.chMobileNo = new ColumnHeader();
this.chFetionNo = new ColumnHeader();
this.pnlStep_Result = new Panel();
this.label4 = new Label();
this.lblImportContactName = new XLabel();
this.progressBarExport = new ProgressBar();
this.listBox1 = new ListBox();
this.columnHeader1 = new ColumnHeader();
this.pnlStep_MyInfo = new Panel();
this.buttonNewGrp = new UButton();
this.label1 = new Label();
this.chkInviteStartService = new CheckBox();
this.comboBoxGroup = new ComboBox();
this.textBoxMyName = new XTextBox();
this.labelName = new XLabel();
this.labelRealName = new HtmlLabel();
this.openFileDialog = new OpenFileDialog();
this.pbImportExport = new PictureBox();
this.pnlMainContainer = new Panel();
XLabel label = new XLabel();
this.pnlStep_SelSource.SuspendLayout();
this.groupBox1.SuspendLayout();
this.panelOutlookRead.SuspendLayout();
this.panelFileSel.SuspendLayout();
this.panelOutlookDes.SuspendLayout();
this.pnlContainer.SuspendLayout();
this.pnlStep_SelContact.SuspendLayout();
this.pnlStep_Result.SuspendLayout();
this.pnlStep_MyInfo.SuspendLayout();
this.pbImportExport.BeginInit();
this.pnlMainContainer.SuspendLayout();
base.SuspendLayout();
label.set_AutoSize(true);
label.BackColor = Color.Transparent;
label.BorderColor = Color.Empty;
label.ButtonBorderStyle = ButtonBorderStyle.None;
label.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
label.ForeColor = SystemColors.ControlText;
label.Location = new System.Drawing.Point(15, 0xb3);
label.Name = "label6";
label.Size = new Size(0x5b, 15);
label.TabIndex = 11;
label.Text = "将联系人添加到";
this.lblDescription.BorderColor = Color.Empty;
this.lblDescription.ButtonBorderStyle = ButtonBorderStyle.None;
this.lblDescription.Location = new System.Drawing.Point(0x10, 0x17);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new Size(0x11f, 0x36);
this.lblDescription.TabIndex = 0;
this.lblDescription.Text = " 使用导入功能可以方便的导入Outlook等联系人列表中的联系人。";
this.lblSelectPlugin.set_AutoSize(true);
this.lblSelectPlugin.BorderColor = Color.Empty;
this.lblSelectPlugin.ButtonBorderStyle = ButtonBorderStyle.None;
this.lblSelectPlugin.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
this.lblSelectPlugin.Location = new System.Drawing.Point(6, 8);
this.lblSelectPlugin.Name = "lblSelectPlugin";
this.lblSelectPlugin.Size = new Size(0x48, 13);
this.lblSelectPlugin.TabIndex = 0;
this.lblSelectPlugin.Text = "选择导入源";
this.pnlStep_SelSource.Controls.Add(this.groupBox1);
this.pnlStep_SelSource.Controls.Add(this.rbFile);
this.pnlStep_SelSource.Controls.Add(this.rbOutlook);
this.pnlStep_SelSource.Controls.Add(this.linkLabelHelp);
this.pnlStep_SelSource.Controls.Add(this.xLabel2);
this.pnlStep_SelSource.Controls.Add(this.lblSelectPlugin);
this.pnlStep_SelSource.Location = new System.Drawing.Point(10, 10);
this.pnlStep_SelSource.Name = "pnlStep_SelSource";
this.pnlStep_SelSource.Size = new Size(0xb0, 0x91);
this.pnlStep_SelSource.TabIndex = 0;
this.groupBox1.Controls.Add(this.panelOutlookRead);
this.groupBox1.Controls.Add(this.panelFileSel);
this.groupBox1.Controls.Add(this.panelOutlookDes);
this.groupBox1.Location = new System.Drawing.Point(10, 0x67);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(0x148, 0x77);
this.groupBox1.TabIndex = 7;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "说明";
this.panelOutlookRead.Controls.Add(this.label3);
this.panelOutlookRead.Controls.Add(this.progressOutLook);
this.panelOutlookRead.Location = new System.Drawing.Point(90, 0x10);
this.panelOutlookRead.Name = "panelOutlookRead";
this.panelOutlookRead.Size = new Size(0x52, 100);
this.panelOutlookRead.TabIndex = 2;
this.label3.set_AutoSize(true);
this.label3.Location = new System.Drawing.Point(0x13, 0x17);
this.label3.Name = "label3";
this.label3.Size = new Size(0xa4, 13);
this.label3.TabIndex = 12;
this.label3.Text = "正从Outlook中读取联系人信息";
this.progressOutLook.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
this.progressOutLook.Location = new System.Drawing.Point(0x16, 50);
this.progressOutLook.Name = "progressOutLook";
this.progressOutLook.Size = new Size(0x11b, 0x17);
this.progressOutLook.set_Style(2);
this.progressOutLook.TabIndex = 11;
this.progressOutLook.Visible = false;
this.panelFileSel.Controls.Add(this.btnBrowse);
this.panelFileSel.Controls.Add(this.label2);
this.panelFileSel.Controls.Add(this.txtFilePath);
this.panelFileSel.Location = new System.Drawing.Point(0xc0, 12);
this.panelFileSel.Name = "panelFileSel";
this.panelFileSel.Size = new Size(0x72, 100);
this.panelFileSel.TabIndex = 1;
this.btnBrowse.AutoSizeToImage = false;
this.btnBrowse.BackColor = Color.Transparent;
this.btnBrowse.BackgroundImage = (Image) manager.GetObject("btnBrowse.BackgroundImage");
this.btnBrowse.BackgroundImageDisable = (Image) manager.GetObject("btnBrowse.BackgroundImageDisable");
this.btnBrowse.BackgroundImageDown = (Image) manager.GetObject("btnBrowse.BackgroundImageDown");
this.btnBrowse.BackgroundImageHover = (Image) manager.GetObject("btnBrowse.BackgroundImageHover");
this.btnBrowse.ChangeSkin = false;
this.btnBrowse.Location = new System.Drawing.Point(0xea, 0x3d);
this.btnBrowse.Name = "btnBrowse";
this.btnBrowse.Size = new Size(0x4b, 0x15);
this.btnBrowse.TabIndex = 2;
this.btnBrowse.Text = "浏览...";
this.btnBrowse.set_UseVisualStyleBackColor(false);
this.btnBrowse.Click += new EventHandler(this.btnBrowse_Click);
this.label2.Location = new System.Drawing.Point(7, 0x12);
this.label2.Name = "label2";
this.label2.Size = new Size(0x12e, 0x1f);
this.label2.TabIndex = 0;
this.label2.Text = " 支持csv,vCard,Fetion联系人格式文件导入联系人,请选择包含联系人信息的文件。";
this.txtFilePath.Location = new System.Drawing.Point(10, 0x3e);
this.txtFilePath.Name = "txtFilePath";
this.txtFilePath.Size = new Size(0xda, 20);
this.txtFilePath.TabIndex = 1;
this.txtFilePath.TextChanged += new EventHandler(this.txtFilePath_TextChanged);
this.panelOutlookDes.Controls.Add(this.lblDescription);
this.panelOutlookDes.Location = new System.Drawing.Point(9, 0x13);
this.panelOutlookDes.Name = "panelOutlookDes";
this.panelOutlookDes.Size = new Size(0x4b, 0x60);
this.panelOutlookDes.TabIndex = 0;
this.rbFile.set_AutoSize(true);
this.rbFile.Location = new System.Drawing.Point(0x23, 0x47);
this.rbFile.Name = "rbFile";
this.rbFile.Size = new Size(0xb5, 0x11);
this.rbFile.TabIndex = 6;
this.rbFile.TabStop = true;
this.rbFile.Text = "从包含联系人信息的文件导入";
this.rbFile.set_UseVisualStyleBackColor(true);
this.rbOutlook.set_AutoSize(true);
this.rbOutlook.Location = new System.Drawing.Point(0x23, 40);
this.rbOutlook.Name = "rbOutlook";
this.rbOutlook.Size = new Size(0x9e, 0x11);
this.rbOutlook.TabIndex = 6;
this.rbOutlook.TabStop = true;
this.rbOutlook.Text = "从Outlook联系人信息导入";
this.rbOutlook.set_UseVisualStyleBackColor(true);
this.rbOutlook.CheckedChanged += new EventHandler(this.rbOutlook_CheckedChanged);
this.linkLabelHelp.set_AutoSize(true);
this.linkLabelHelp.LinkColor = Color.Green;
this.linkLabelHelp.Location = new System.Drawing.Point(20, 280);
this.linkLabelHelp.Name = "linkLabelHelp";
this.linkLabelHelp.Size = new Size(0x73, 13);
this.linkLabelHelp.TabIndex = 5;
this.linkLabelHelp.TabStop = true;
this.linkLabelHelp.Text = "相关资费及更多说明";
this.linkLabelHelp.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabelHelp_LinkClicked);
this.xLabel2.BorderColor = Color.Empty;
this.xLabel2.ButtonBorderStyle = ButtonBorderStyle.None;
this.xLabel2.ForeColor = Color.Red;
this.xLabel2.Location = new System.Drawing.Point(20, 0xed);
this.xLabel2.Name = "xLabel2";
this.xLabel2.Size = new Size(0x13b, 0x22);
this.xLabel2.TabIndex = 3;
this.xLabel2.Text = " 如果对方不在线或未开通飞信,将通过手机短信收到您的添加邀请。";
this.btnCancel.AutoSizeToImage = false;
this.btnCancel.BackColor = Color.Transparent;
this.btnCancel.BackgroundImageDisable = null;
this.btnCancel.BackgroundImageDown = null;
this.btnCancel.BackgroundImageHover = null;
this.btnCancel.ChangeSkin = true;
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(0x19d, 0x147);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(0x4b, 0x17);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "取消(&C)";
this.btnCancel.set_UseVisualStyleBackColor(false);
this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
this.btnNext.AutoSizeToImage = false;
this.btnNext.BackColor = Color.Transparent;
this.btnNext.BackgroundImageDisable = null;
this.btnNext.BackgroundImageDown = null;
this.btnNext.BackgroundImageHover = null;
this.btnNext.ChangeSkin = true;
this.btnNext.Location = new System.Drawing.Point(0x14c, 0x147);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new Size(0x4b, 0x17);
this.btnNext.TabIndex = 2;
this.btnNext.Text = "下一步(&N)";
this.btnNext.set_UseVisualStyleBackColor(false);
this.btnNext.Click += new EventHandler(this.btnNext_Click);
this.btnPrevious.AutoSizeToImage = false;
this.btnPrevious.BackColor = Color.Transparent;
this.btnPrevious.BackgroundImageDisable = null;
this.btnPrevious.BackgroundImageDown = null;
this.btnPrevious.BackgroundImageHover = null;
this.btnPrevious.ChangeSkin = true;
this.btnPrevious.Location = new System.Drawing.Point(0xfb, 0x147);
this.btnPrevious.Name = "btnPrevious";
this.btnPrevious.Size = new Size(0x4b, 0x17);
this.btnPrevious.TabIndex = 1;
this.btnPrevious.Text = "上一步(&B)";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -