Skip to content
Browse files

nothing

  • Loading branch information...
1 parent a3e853c commit aba302f0711e605e92906cc618d9d81ea38842e3 Advansil committed Apr 13, 2012
Showing with 19 additions and 16 deletions.
  1. +16 −16 ExcelApplication/ExcelApplication/Form1.Designer.cs
  2. +3 −0 ExcelApplication/ExcelApplication/Form1.cs
View
32 ExcelApplication/ExcelApplication/Form1.Designer.cs
@@ -28,7 +28,7 @@ protected override void Dispose(bool disposing)
/// </summary>
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -41,6 +41,7 @@ private void InitializeComponent()
this.dateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ingotToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.cuttingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.cutNOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.calculatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -52,7 +53,6 @@ private void InitializeComponent()
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.btnLoadData = new System.Windows.Forms.Button();
- this.cutNOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
@@ -84,27 +84,27 @@ private void InitializeComponent()
// newToolStripMenuItem
//
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
- this.newToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.newToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
this.newToolStripMenuItem.Text = "New";
//
// openToolStripMenuItem
//
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.openToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
this.openToolStripMenuItem.Text = "Open";
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
//
// saveToolStripMenuItem1
//
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
- this.saveToolStripMenuItem1.Size = new System.Drawing.Size(152, 22);
+ this.saveToolStripMenuItem1.Size = new System.Drawing.Size(100, 22);
this.saveToolStripMenuItem1.Text = "Save";
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
//
// closeToolStripMenuItem
//
this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
- this.closeToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.closeToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
this.closeToolStripMenuItem.Text = "Close";
this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
//
@@ -146,7 +146,7 @@ private void InitializeComponent()
//
this.ingotToolStripMenuItem.Name = "ingotToolStripMenuItem";
this.ingotToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.ingotToolStripMenuItem.Text = "按铸锭炉号";
+ this.ingotToolStripMenuItem.Text = "按铸锭编号";
this.ingotToolStripMenuItem.Click += new System.EventHandler(this.ingotToolStripMenuItem_Click);
//
// cuttingToolStripMenuItem
@@ -156,6 +156,13 @@ private void InitializeComponent()
this.cuttingToolStripMenuItem.Text = "按切割号";
this.cuttingToolStripMenuItem.Click += new System.EventHandler(this.cuttingToolStripMenuItem_Click);
//
+ // cutNOToolStripMenuItem
+ //
+ this.cutNOToolStripMenuItem.Name = "cutNOToolStripMenuItem";
+ this.cutNOToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.cutNOToolStripMenuItem.Text = "按机器号";
+ this.cutNOToolStripMenuItem.Click += new System.EventHandler(this.cutNOToolStripMenuItem_Click);
+ //
// toolToolStripMenuItem
//
this.toolToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -188,8 +195,8 @@ private void InitializeComponent()
//
// dataGridView1
//
- dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
@@ -256,13 +263,6 @@ private void InitializeComponent()
this.btnLoadData.UseVisualStyleBackColor = true;
this.btnLoadData.Click += new System.EventHandler(this.btnLoadData_Click);
//
- // cutNOToolStripMenuItem
- //
- this.cutNOToolStripMenuItem.Name = "cutNOToolStripMenuItem";
- this.cutNOToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.cutNOToolStripMenuItem.Text = "按机器号";
- this.cutNOToolStripMenuItem.Click += new System.EventHandler(this.cutNOToolStripMenuItem_Click);
- //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
View
3 ExcelApplication/ExcelApplication/Form1.cs
@@ -180,6 +180,7 @@ private void codeToolStripMenuItem_Click(object sender, EventArgs e)
private void saveToolStripMenuItem1_Click(object sender, EventArgs e)
{
+ btnLoadData.Enabled = false;
try
{
ExcelLib.IExcel tmp = ExcelLib.PreExcel.GetExcel(txtPath.Text);
@@ -216,6 +217,8 @@ private void saveToolStripMenuItem1_Click(object sender, EventArgs e)
if (tmp.Save(sheetName, array))
MessageBox.Show("File Save Success!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
tmp.Close();
+ txtPath.Text = "";
+ comboBox1.DataSource = null;
}
catch (Exception ex)
{

0 comments on commit aba302f

Please sign in to comment.
Something went wrong with that request. Please try again.