Permalink
Browse files

防止保持到错误路径

  • Loading branch information...
1 parent d84f4b2 commit 194a6e072f0162614fbac7359ff0804260f8c738 Advansil committed Apr 12, 2012
Showing with 5 additions and 10 deletions.
  1. +0 −1 ExcelApplication/ExcelApplication/Form1.Designer.cs
  2. +5 −9 ExcelApplication/ExcelApplication/Form1.cs

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -147,20 +147,16 @@ private void btnLoadData_Click(object sender, EventArgs e)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
-
+ txtPath.Text = "";
+ comboBox1.DataSource = null;
btnLoadData.Enabled = false;
}
private void codeToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("http://epplus.codeplex.com/discussions");
}
-
- private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
- {
- btnLoadData.Enabled = true;
- }
-
+
private void saveToolStripMenuItem1_Click(object sender, EventArgs e)
{
try
@@ -228,11 +224,11 @@ private void removeColumnToolStripMenuItem_Click(object sender, EventArgs e)
if (columnCount > 66)
{
- for (int i = columnCount - 1; i > 48; i--)
+ for (int i = columnCount - 1; i > 49; i--)
{
dataGridView1.Columns.RemoveAt(i);
}
- for (int i = 47; i > 12; i -= 2)
+ for (int i = 49; i > 12; i -= 2)
{
for (int j = 0; j < rowCount-1; j++)
{

0 comments on commit 194a6e0

Please sign in to comment.