private void btnExport_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; ExportScript(outputPath); if (Max_ID.StartsWith("DC")) { reserve.updateID(ConnectionTemp, Min_ID, Max_ID, "Disc", USER, UR_NO); } else if (Max_ID.StartsWith("VAS")) { reserve.updateID(ConnectionTemp, Min_ID, Max_ID, "VAS", USER, UR_NO); } string msg = "Your script was exported successfully" + "\r\n" + "Min ID: " + Min_ID + "\r\n" + "\r\n" + "Max ID: " + Max_ID; MessageBox.Show(msg, "Successfully", MessageBoxButtons.OK, MessageBoxIcon.Information); Cursor.Current = Cursors.Default; }