We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8742a4b commit 84b80feCopy full SHA for 84b80fe
Form1.cs
@@ -79,6 +79,7 @@ private void btn_split_Click(object sender, EventArgs e)
79
80
try
81
{
82
+ btn_split.Enabled = false;
83
List<ExcelSheetData> data = excelHelper.read_excel(tb_file_loc.Text);
84
int max_total_rows = excelHelper.GetSheetWithMostRows(data).RowCount;
85
int max_rows = (split_by_rows) ? split_num : (max_total_rows / split_num) + 1;
@@ -104,10 +105,12 @@ private void btn_split_Click(object sender, EventArgs e)
104
105
106
progressBar1.Value = 100;
107
MessageBox.Show("Completed successfully!");
108
+ btn_split.Enabled = true;
109
}
110
catch (Exception ex)
111
112
MessageBox.Show("Failed to split.");
113
114
115
116
0 commit comments