private void ButtonSaveExcel_Click(object sender, EventArgs e) { try { CardUsageController Export = new CardUsageController(); Export.SaveExcelFile(CardUsageGridView, CardNumber); }catch (Exception) { MessageBox.Show("Sorry The System can't export your history"); } }
private void ButtonSaveExcel_Click(object sender, EventArgs e) { try { CardUsageController Export = new CardUsageController(); Export.SaveExcelFile(CardUsageGridView,CardNumber); }catch(Exception) { MessageBox.Show("Sorry The System can't export your history"); } }