private void DeleteData(List <DataGridViewRow> selectedRows) { if (selectedRows.Count > 0) { if (UtilityMessage.Confirm(GeneralMessage.ConfirmDelete, GeneralMessage.MessageBoxTitle)) { RowsEventArgs RowArg = new RowsEventArgs() { RowsSelected = selectedRows }; if (onDeleteDataRows != null) { onDeleteDataRows(GetDeleteDataKey(selectedRows), RowArg); LoadData(); Grid.ClearSelection(); UtilityMessage.Alert(GeneralMessage.DeleteComplete, GeneralMessage.MessageBoxTitle); } } } else { UtilityMessage.Warning(GeneralMessage.NoSelectedData, GeneralMessage.MessageBoxTitle); } }
public bool ShowConfirmMessage(string message, string title) { return(UtilityMessage.Confirm(message, title)); }