📄 exportform.cs
字号:
this.lblSelectPlugin.Name = "lblSelectPlugin";
this.lblSelectPlugin.Size = new Size(0x62, 13);
this.lblSelectPlugin.TabIndex = 0;
this.lblSelectPlugin.Text = "选择导出的格式";
this.lblDescription.BorderColor = Color.Empty;
this.lblDescription.ButtonBorderStyle = ButtonBorderStyle.None;
this.lblDescription.Location = new System.Drawing.Point(0x12, 0x77);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new Size(0x12f, 0x33);
this.lblDescription.TabIndex = 2;
this.lblDescription.Text = "lblPluginDescription";
this.lblDescription.Visible = false;
this.lblDescription.Click += new EventHandler(this.lblDescription_Click);
this.lstPlugins.set_FormattingEnabled(true);
this.lstPlugins.Location = new System.Drawing.Point(0x12, 0x22);
this.lstPlugins.Name = "lstPlugins";
this.lstPlugins.Size = new Size(0x12f, 0x52);
this.lstPlugins.TabIndex = 1;
this.lstPlugins.SelectedIndexChanged += new EventHandler(this.lstPlugins_SelectedIndexChanged);
this.pnlStep4.Controls.Add(this.progressBarExport);
this.pnlStep4.Controls.Add(this.lblSelectSavePath);
this.pnlStep4.Location = new System.Drawing.Point(0xe7, 0xc6);
this.pnlStep4.Name = "pnlStep4";
this.pnlStep4.Size = new Size(0x6f, 0x49);
this.pnlStep4.TabIndex = 3;
this.pnlStep4.Visible = false;
this.pnlStep4.Paint += new PaintEventHandler(this.pnlStep4_Paint);
this.progressBarExport.Location = new System.Drawing.Point(7, 0x27);
this.progressBarExport.Name = "progressBarExport";
this.progressBarExport.Size = new Size(0x116, 20);
this.progressBarExport.TabIndex = 3;
this.progressBarExport.Visible = false;
this.lblSelectSavePath.set_AutoSize(true);
this.lblSelectSavePath.BorderColor = Color.Empty;
this.lblSelectSavePath.ButtonBorderStyle = ButtonBorderStyle.None;
this.lblSelectSavePath.Location = new System.Drawing.Point(10, 9);
this.lblSelectSavePath.Name = "lblSelectSavePath";
this.lblSelectSavePath.Size = new Size(0xb2, 13);
this.lblSelectSavePath.TabIndex = 0;
this.lblSelectSavePath.Text = "第三步:选择导出文件的保存位置";
this.panelOK.Controls.Add(this.xLabel1);
this.panelOK.Controls.Add(this.linkLabel1);
this.panelOK.Controls.Add(this.labelOK);
this.panelOK.Controls.Add(this.pbOK);
this.panelOK.Location = new System.Drawing.Point(0xc0, 0xdf);
this.panelOK.Name = "panelOK";
this.panelOK.Size = new Size(200, 100);
this.panelOK.TabIndex = 0;
this.xLabel1.set_AutoSize(true);
this.xLabel1.BorderColor = Color.Empty;
this.xLabel1.ButtonBorderStyle = ButtonBorderStyle.None;
this.xLabel1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
this.xLabel1.Location = new System.Drawing.Point(6, 8);
this.xLabel1.Name = "xLabel1";
this.xLabel1.Size = new Size(0x3b, 13);
this.xLabel1.TabIndex = 3;
this.xLabel1.Text = "导出完成";
this.linkLabel1.set_AutoSize(true);
this.linkLabel1.LinkColor = Color.Green;
this.linkLabel1.Location = new System.Drawing.Point(0x7b, 0x98);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new Size(0x5b, 13);
this.linkLabel1.TabIndex = 2;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "打开所在文件夹";
this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
this.labelOK.set_AutoSize(true);
this.labelOK.Location = new System.Drawing.Point(0x7b, 0x7c);
this.labelOK.Name = "labelOK";
this.labelOK.Size = new Size(0x37, 13);
this.labelOK.TabIndex = 1;
this.labelOK.Text = "成功导出";
this.pbOK.Image = (Image) manager.GetObject("pbOK.Image");
this.pbOK.Location = new System.Drawing.Point(50, 0x73);
this.pbOK.Name = "pbOK";
this.pbOK.Size = new Size(0x43, 0x3f);
this.pbOK.TabIndex = 0;
this.pbOK.TabStop = false;
this.pbExportImport.Image = (Image) manager.GetObject("pbExportImport.Image");
this.pbExportImport.Location = new System.Drawing.Point(0, 0);
this.pbExportImport.Name = "pbExportImport";
this.pbExportImport.Size = new Size(0x97, 0x13c);
this.pbExportImport.TabIndex = 4;
this.pbExportImport.TabStop = false;
this.pnlMain.BackColor = Color.Transparent;
this.pnlMain.Controls.Add(this.pbExportImport);
this.pnlMain.Controls.Add(this.pnlContainer);
this.pnlMain.Location = new System.Drawing.Point(6, 0x1f);
this.pnlMain.Name = "pnlMain";
this.pnlMain.Size = new Size(0x1ee, 0x13c);
this.pnlMain.TabIndex = 0;
this.pnlMain.Paint += new PaintEventHandler(this.pnlMain_Paint);
base.set_AutoScaleDimensions(new SizeF(6f, 13f));
base.set_AutoScaleMode(1);
base.BaseHeight = 420;
base.BaseWidth = 0x1f9;
base.ClientSize = new Size(0x1f3, 0x184);
base.KeyPreview = true;
base.Controls.Add(this.pnlMain);
base.Controls.Add(this.btnCancel);
base.Controls.Add(this.btnNext);
base.Controls.Add(this.btnPrevious);
base.DisplayLocation = new System.Drawing.Point(0x12, -29);
base.MinimizeBox = false;
base.Name = "ExportForm";
base.set_Padding(new Padding(6, 0x1f, 0x13, 8));
base.StartPosition = FormStartPosition.CenterScreen;
base.Text = "导出联系人";
base.Load += new EventHandler(this.ExportForm_Load);
this.pnlContainer.ResumeLayout(false);
this.pnlStep1.ResumeLayout(false);
this.pnlStep1.PerformLayout();
this.pnlStep2.ResumeLayout(false);
this.pnlStep2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.pnlStep4.ResumeLayout(false);
this.pnlStep4.PerformLayout();
this.panelOK.ResumeLayout(false);
this.panelOK.PerformLayout();
this.pbOK.EndInit();
this.pbExportImport.EndInit();
this.pnlMain.ResumeLayout(false);
base.ResumeLayout(false);
}
private void lblDescription_Click(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
FileInfo info = new FileInfo(this.txtFilePath.Text);
Process.Start(info.DirectoryName);
}
catch (Exception exception)
{
ClientLogger.WriteException(exception);
}
}
private void lstPlugins_DoubleClick(object sender, EventArgs e)
{
this.DoNext();
}
private void lstPlugins_SelectedIndexChanged(object sender, EventArgs e)
{
this.txtFilePath.Text = string.Empty;
}
protected override void OnKeyDown(KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
base.Close();
}
else
{
base.OnKeyDown(e);
}
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
UiErrorHelper.HandEventSafely(this._frameworkWin, delegate {
this.lstPlugins.DisplayMember = "Name";
this.lstPlugins.DataSource = this._manager.GetExportPlugins();
this.FormatForm();
this.InitData();
});
}
private void pnlMain_Paint(object sender, PaintEventArgs e)
{
}
private void pnlStep1_Paint(object sender, PaintEventArgs e)
{
}
private void pnlStep4_Paint(object sender, PaintEventArgs e)
{
}
private void treeContacts_AfterCheck(object sender, TreeViewEventArgs e)
{
UiErrorHelper.HandEventSafely(this._frameworkWin, delegate {
if (!this.bUsed)
{
if (e.Node.Tag is ContactGroup)
{
foreach (TreeNode node in e.Node.Nodes)
{
this.bUsed = true;
node.Checked = e.Node.Checked;
this.bUsed = false;
}
}
else if (e.Node.Parent != null)
{
if (!e.Node.Checked)
{
this.bUsed = true;
e.Node.Parent.Checked = false;
this.bUsed = false;
}
else
{
bool flag = true;
foreach (TreeNode node2 in e.Node.Parent.Nodes)
{
if (!node2.Checked)
{
flag = false;
break;
}
}
if (flag)
{
this.bUsed = true;
e.Node.Parent.Checked = true;
this.bUsed = false;
}
}
}
}
});
}
private void txtFilePath_TextChanged(object sender, EventArgs e)
{
UiErrorHelper.HandEventSafely(this._frameworkWin, delegate {
this.btnNext.Enabled = this.CanExport();
});
}
private class ContactCompare : IComparer<Contact>
{
public int Compare(Contact x, Contact y)
{
return x.DisplayName.CompareTo(y.DisplayName);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -