void c_btnDeleteClicked(int RowID) { try { varID = Convert.ToInt32(objQColl[RowID].ID); if (System.Windows.MessageBox.Show("Do You Really Want To Delete This Record ?", "->Delete Question", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { ClsQuestion.Delete(varID); System.Windows.MessageBox.Show("Record Deleted!!", "->Question Delete", MessageBoxButton.OK, MessageBoxImage.Information); FncFillGrid(); } } catch (Exception exp) { exp.Data.Add("My Key", "c_btnDeleteClicked()--:--CtlQuestionAns.xaml.cs--:--" + exp.Message + " :--:--"); //ClsException.LogError(ex); //ClsException.WriteToErrorLogFile(ex); System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine(exp.Message); sb.AppendLine(); sb.AppendLine("StackTrace : " + exp.StackTrace); sb.AppendLine(); sb.AppendLine("Location : " + exp.Data["My Key"].ToString()); sb.AppendLine(); sb1 = CreateTressInfo(); sb.Append(sb1.ToString()); VMuktiAPI.ClsLogging.WriteToTresslog(sb); } }
void c_btnDeleteClicked(int RowID) { varID = Convert.ToInt32(objQColl[RowID].ID); if (System.Windows.MessageBox.Show("Do You Really Want To Delete This Record ?", "Delete Question", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { ClsQuestion.Delete(varID); System.Windows.MessageBox.Show("Record Deleted!!", "Question Delete", MessageBoxButton.OK, MessageBoxImage.Information); FncFillGrid(); if (objQColl.Count == 0) { btnDesigner.IsEnabled = false; } } }
void c_btnDeleteClicked(int RowID) { try { varID = Convert.ToInt32(objQColl[RowID].ID); if (System.Windows.MessageBox.Show("Do You Really Want To Delete This Record ?", "->Delete Question", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { ClsQuestion.Delete(varID); System.Windows.MessageBox.Show("Record Deleted!!", "->Question Delete", MessageBoxButton.OK, MessageBoxImage.Information); FncFillGrid(); } } catch (Exception exp) { VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "c_btnDeleteClicked()", "CtlQuestionAns.xaml.cs"); } }