c# xml与字典使用 设计器程序
namespace XmlDictionaryExample
{
partial class MainForm
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.lstDictionary = new System.Windows.Forms.ListBox();
this.txtKey = new System.Windows.Forms.TextBox();
this.txtValue = new System.Windows.Forms.TextBox();
this.btnAdd = new System.Windows.Forms.Button();
this.btnSerialize = new System.Windows.Forms.Button();
this.btnDeserialize = new System.Windows.Forms.Button();
this.btnClear = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lblCount = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// lstDictionary
//
this.lstDictionary.FormattingEnabled = true;
this.lstDictionary.ItemHeight = 15;
this.lstDictionary.Location = new System.Drawing.Point(17, 32);
this.lstDictionary.Name = "lstDictionary";
this.lstDictionary.Size = new System.Drawing.Size(350, 199);
this.lstDictionary.TabIndex = 0;
//
// txtKey
//
this.txtKey.Location = new System.Drawing.Point(60, 30);
this.txtKey.Name = "txtKey";
this.txtKey.Size = new System.Drawing.Size(150, 25);
this.txtKey.TabIndex = 1;
//
// txtValue
//
this.txtValue.Location = new System.Drawing.Point(60, 70);
this.txtValue.Name = "txtValue";
this.txtValue.Size = new System.Drawing.Size(150, 25);
this.txtValue.TabIndex = 2;
//
// btnAdd
//
this.btnAdd.Location = new System.Drawing.Point(230, 40);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(90, 40);
this.btnAdd.TabIndex = 3;
this.btnAdd.Text = "添加";
this.btnAdd.UseVisualStyleBackColor = true;
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// btnSerialize
//
this.btnSerialize.Location = new System.Drawing.Point(20, 30);
this.btnSerialize.Name = "btnSerialize";
this.btnSerialize.Size = new System.Drawing.Size(120, 40);
this.btnSerialize.TabIndex = 4;
this.btnSerialize.Text = "序列化为XML";
this.btnSerialize.UseVisualStyleBackColor = true;
this.btnSerialize.Click += new System.EventHandler(this.btnSerialize_Click);
//
// btnDeserialize
//
this.btnDeserialize.Location = new System.Drawing.Point(160, 30);
this.btnDeserialize.Name = "btnDeserialize";
this.btnDeserialize.Size = new System.Drawing.Size(120, 40);
this.btnDeserialize.TabIndex = 5;
this.btnDeserialize.Text = "从XML反序列化";
this.btnDeserialize.UseVisualStyleBackColor = true;
this.btnDeserialize.Click += new System.EventHandler(this.btnDeserialize_Click);
//
// btnClear
//
this.btnClear.Location = new System.Drawing.Point(300, 30);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(90, 40);
this.btnClear.TabIndex = 6;
this.btnClear.Text = "清空字典";
this.btnClear.UseVisualStyleBackColor = true;
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(20, 35);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(37, 15);
this.label1.TabIndex = 7;
this.label1.Text = "键:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(20, 75);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(37, 15);
this.label2.TabIndex = 8;
this.label2.Text = "值:";
//
// lblCount
//
this.lblCount.AutoSize = true;
this.lblCount.Location = new System.Drawing.Point(17, 250);
this.lblCount.Name = "lblCount";
this.lblCount.Size = new System.Drawing.Size(82, 15);
this.lblCount.TabIndex = 9;
this.lblCount.Text = "条目数量:0";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.txtKey);
this.groupBox1.Controls.Add(this.txtValue);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.btnAdd);
this.groupBox1.Location = new System.Drawing.Point(20, 20);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(400, 120);
this.groupBox1.TabIndex = 10;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "添加键值对";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.lstDictionary);
this.groupBox2.Controls.Add(this.lblCount);
this.groupBox2.Location = new System.Drawing.Point(20, 160);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(400, 280);
this.groupBox2.TabIndex = 11;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "字典内容";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(442, 503);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnClear);
this.Controls.Add(this.btnDeserialize);
this.Controls.Add(this.btnSerialize);
this.Name = "MainForm";
this.Text = "XML与字典使用示例";
this.Load += new System.EventHandler(this.MainForm_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}
private System.Windows.Forms.ListBox lstDictionary;
private System.Windows.Forms.TextBox txtKey;
private System.Windows.Forms.TextBox txtValue;
private System.Windows.Forms.Button btnAdd;
private System.Windows.Forms.Button btnSerialize;
private System.Windows.Forms.Button btnDeserialize;
private System.Windows.Forms.Button btnClear;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lblCount;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
}
}
更多推荐



所有评论(0)