private void btn_M_Help_Click(object sender, EventArgs e) { string fileName = SelectFileExporExcel.GetSaveFileNameByDiag(); if (fileName == "") { return; } DataImpExp.DataIE.DataGridViewToExcel(grdData, fileName, Text); }
private void btn_M_Help_Click(object sender, EventArgs e) { string fileName = SelectFileExporExcel.GetSaveFileNameByDiag(); if (fileName == "") { return; } switch (tbcMain.SelectedIndex.ToString()) { case "0": DataImpExp.DataIE.DataGridViewToExcel(grdPallet, fileName, tbcMain.SelectedTab.Text); break; case "1": DataImpExp.DataIE.DataGridViewToExcel(grdAll, fileName, tbcMain.SelectedTab.Text); break; } }