|
@@ -30,16 +30,17 @@
|
|
|
{
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
|
+ this.btnHome = new System.Windows.Forms.Button();
|
|
|
+ this.btnAbout = new System.Windows.Forms.Button();
|
|
|
this.btnConvert = new System.Windows.Forms.Button();
|
|
|
- this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
- this.textBox1 = new System.Windows.Forms.TextBox();
|
|
|
- this.button2 = new System.Windows.Forms.Button();
|
|
|
- this.button3 = new System.Windows.Forms.Button();
|
|
|
- this.label4 = new System.Windows.Forms.Label();
|
|
|
+ this.tbOutputDir = new System.Windows.Forms.TextBox();
|
|
|
+ this.lbConvertResult = new System.Windows.Forms.Label();
|
|
|
+ this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
|
|
+ this.tbInputDir = new System.Windows.Forms.TextBox();
|
|
|
this.panel1.SuspendLayout();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
@@ -47,16 +48,38 @@
|
|
|
//
|
|
|
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
|
- this.panel1.Controls.Add(this.button3);
|
|
|
- this.panel1.Controls.Add(this.button2);
|
|
|
- this.panel1.Location = new System.Drawing.Point(0, 12);
|
|
|
+ this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
|
|
+ this.panel1.Controls.Add(this.btnHome);
|
|
|
+ this.panel1.Controls.Add(this.btnAbout);
|
|
|
+ this.panel1.Location = new System.Drawing.Point(0, 0);
|
|
|
this.panel1.Name = "panel1";
|
|
|
- this.panel1.Size = new System.Drawing.Size(156, 362);
|
|
|
+ this.panel1.Size = new System.Drawing.Size(165, 459);
|
|
|
this.panel1.TabIndex = 0;
|
|
|
//
|
|
|
+ // btnHome
|
|
|
+ //
|
|
|
+ this.btnHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
|
|
+ this.btnHome.Location = new System.Drawing.Point(6, 120);
|
|
|
+ this.btnHome.Name = "btnHome";
|
|
|
+ this.btnHome.Size = new System.Drawing.Size(152, 37);
|
|
|
+ this.btnHome.TabIndex = 8;
|
|
|
+ this.btnHome.Text = "关于我们";
|
|
|
+ this.btnHome.UseVisualStyleBackColor = false;
|
|
|
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
|
|
|
+ //
|
|
|
+ // btnAbout
|
|
|
+ //
|
|
|
+ this.btnAbout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
|
|
+ this.btnAbout.Location = new System.Drawing.Point(6, 77);
|
|
|
+ this.btnAbout.Name = "btnAbout";
|
|
|
+ this.btnAbout.Size = new System.Drawing.Size(152, 37);
|
|
|
+ this.btnAbout.TabIndex = 7;
|
|
|
+ this.btnAbout.Text = "首页";
|
|
|
+ this.btnAbout.UseVisualStyleBackColor = false;
|
|
|
+ //
|
|
|
// btnConvert
|
|
|
//
|
|
|
- this.btnConvert.Location = new System.Drawing.Point(337, 275);
|
|
|
+ this.btnConvert.Location = new System.Drawing.Point(425, 278);
|
|
|
this.btnConvert.Name = "btnConvert";
|
|
|
this.btnConvert.Size = new System.Drawing.Size(152, 37);
|
|
|
this.btnConvert.TabIndex = 1;
|
|
@@ -64,15 +87,11 @@
|
|
|
this.btnConvert.UseVisualStyleBackColor = true;
|
|
|
this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click);
|
|
|
//
|
|
|
- // openFileDialog1
|
|
|
- //
|
|
|
- this.openFileDialog1.FileName = "openFileDialog1";
|
|
|
- //
|
|
|
// label1
|
|
|
//
|
|
|
this.label1.AutoSize = true;
|
|
|
this.label1.Font = new System.Drawing.Font("SimSun", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- this.label1.Location = new System.Drawing.Point(263, 56);
|
|
|
+ this.label1.Location = new System.Drawing.Point(332, 62);
|
|
|
this.label1.Name = "label1";
|
|
|
this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
|
|
this.label1.Size = new System.Drawing.Size(274, 21);
|
|
@@ -82,81 +101,80 @@
|
|
|
// label2
|
|
|
//
|
|
|
this.label2.AutoSize = true;
|
|
|
- this.label2.Location = new System.Drawing.Point(210, 179);
|
|
|
+ this.label2.Location = new System.Drawing.Point(256, 162);
|
|
|
this.label2.Name = "label2";
|
|
|
- this.label2.Size = new System.Drawing.Size(107, 12);
|
|
|
+ this.label2.Size = new System.Drawing.Size(119, 12);
|
|
|
this.label2.TabIndex = 3;
|
|
|
- this.label2.Text = "选择文件/文件夹:";
|
|
|
+ this.label2.Text = "OneNote笔记文件夹:";
|
|
|
//
|
|
|
// button1
|
|
|
//
|
|
|
- this.button1.Location = new System.Drawing.Point(323, 174);
|
|
|
+ this.button1.Font = new System.Drawing.Font("SimSun", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.button1.Location = new System.Drawing.Point(630, 157);
|
|
|
this.button1.Name = "button1";
|
|
|
- this.button1.Size = new System.Drawing.Size(241, 23);
|
|
|
+ this.button1.Size = new System.Drawing.Size(80, 23);
|
|
|
this.button1.TabIndex = 4;
|
|
|
- this.button1.Text = "转换";
|
|
|
+ this.button1.Text = "选择文件夹";
|
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
|
//
|
|
|
// label3
|
|
|
//
|
|
|
this.label3.AutoSize = true;
|
|
|
- this.label3.Location = new System.Drawing.Point(252, 225);
|
|
|
+ this.label3.Location = new System.Drawing.Point(310, 230);
|
|
|
this.label3.Name = "label3";
|
|
|
this.label3.Size = new System.Drawing.Size(65, 12);
|
|
|
this.label3.TabIndex = 5;
|
|
|
this.label3.Text = "输出目录:";
|
|
|
//
|
|
|
- // textBox1
|
|
|
- //
|
|
|
- this.textBox1.Location = new System.Drawing.Point(323, 221);
|
|
|
- this.textBox1.Name = "textBox1";
|
|
|
- this.textBox1.Size = new System.Drawing.Size(241, 21);
|
|
|
- this.textBox1.TabIndex = 6;
|
|
|
- //
|
|
|
- // button2
|
|
|
+ // tbOutputDir
|
|
|
//
|
|
|
- this.button2.Location = new System.Drawing.Point(0, 77);
|
|
|
- this.button2.Name = "button2";
|
|
|
- this.button2.Size = new System.Drawing.Size(152, 37);
|
|
|
- this.button2.TabIndex = 7;
|
|
|
- this.button2.Text = "首页";
|
|
|
- this.button2.UseVisualStyleBackColor = true;
|
|
|
+ this.tbOutputDir.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
|
+ this.tbOutputDir.Font = new System.Drawing.Font("SimSun", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.tbOutputDir.Location = new System.Drawing.Point(381, 229);
|
|
|
+ this.tbOutputDir.Name = "tbOutputDir";
|
|
|
+ this.tbOutputDir.Size = new System.Drawing.Size(241, 15);
|
|
|
+ this.tbOutputDir.TabIndex = 6;
|
|
|
//
|
|
|
- // button3
|
|
|
+ // lbConvertResult
|
|
|
//
|
|
|
- this.button3.Location = new System.Drawing.Point(0, 120);
|
|
|
- this.button3.Name = "button3";
|
|
|
- this.button3.Size = new System.Drawing.Size(152, 37);
|
|
|
- this.button3.TabIndex = 8;
|
|
|
- this.button3.Text = "关于我们";
|
|
|
- this.button3.UseVisualStyleBackColor = true;
|
|
|
+ this.lbConvertResult.AutoSize = true;
|
|
|
+ this.lbConvertResult.Location = new System.Drawing.Point(457, 332);
|
|
|
+ this.lbConvertResult.Name = "lbConvertResult";
|
|
|
+ this.lbConvertResult.Size = new System.Drawing.Size(0, 12);
|
|
|
+ this.lbConvertResult.TabIndex = 7;
|
|
|
//
|
|
|
- // label4
|
|
|
+ // tbInputDir
|
|
|
//
|
|
|
- this.label4.AutoSize = true;
|
|
|
- this.label4.Location = new System.Drawing.Point(377, 335);
|
|
|
- this.label4.Name = "label4";
|
|
|
- this.label4.Size = new System.Drawing.Size(89, 12);
|
|
|
- this.label4.TabIndex = 7;
|
|
|
- this.label4.Text = "全部转换成功。";
|
|
|
+ this.tbInputDir.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
|
+ this.tbInputDir.Font = new System.Drawing.Font("SimSun", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.tbInputDir.Location = new System.Drawing.Point(381, 161);
|
|
|
+ this.tbInputDir.Name = "tbInputDir";
|
|
|
+ this.tbInputDir.Size = new System.Drawing.Size(241, 15);
|
|
|
+ this.tbInputDir.TabIndex = 9;
|
|
|
//
|
|
|
// MainForm
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
|
+ this.BackColor = System.Drawing.SystemColors.Control;
|
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
|
|
- this.Controls.Add(this.label4);
|
|
|
- this.Controls.Add(this.textBox1);
|
|
|
+ this.Controls.Add(this.tbInputDir);
|
|
|
+ this.Controls.Add(this.lbConvertResult);
|
|
|
+ this.Controls.Add(this.tbOutputDir);
|
|
|
this.Controls.Add(this.panel1);
|
|
|
this.Controls.Add(this.label3);
|
|
|
this.Controls.Add(this.label1);
|
|
|
this.Controls.Add(this.button1);
|
|
|
this.Controls.Add(this.btnConvert);
|
|
|
this.Controls.Add(this.label2);
|
|
|
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
this.Name = "MainForm";
|
|
|
- this.Text = "Form1";
|
|
|
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
+ this.Text = "OneNote转换工具";
|
|
|
+ this.Load += new System.EventHandler(this.MainForm_Load);
|
|
|
this.panel1.ResumeLayout(false);
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
@@ -167,15 +185,16 @@
|
|
|
|
|
|
private System.Windows.Forms.Panel panel1;
|
|
|
private System.Windows.Forms.Button btnConvert;
|
|
|
- private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
private System.Windows.Forms.Button button1;
|
|
|
- private System.Windows.Forms.TextBox textBox1;
|
|
|
+ private System.Windows.Forms.TextBox tbOutputDir;
|
|
|
private System.Windows.Forms.Label label3;
|
|
|
- private System.Windows.Forms.Button button3;
|
|
|
- private System.Windows.Forms.Button button2;
|
|
|
- private System.Windows.Forms.Label label4;
|
|
|
+ private System.Windows.Forms.Button btnHome;
|
|
|
+ private System.Windows.Forms.Button btnAbout;
|
|
|
+ private System.Windows.Forms.Label lbConvertResult;
|
|
|
+ private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
|
|
|
+ private System.Windows.Forms.TextBox tbInputDir;
|
|
|
}
|
|
|
}
|
|
|
|