protected void ThrowError(object sender, ControlErrorArgs args) { //Do Logging here if (OnError != null) { OnError(sender, args); } }
void ucCreateUser1_OnError(object sender, GoProGo.Presentation.ControlErrorArgs args) { if (args.InnerException != null) { ((ICommon)this.Master).ShowMessage(args.InnerException.Message, MessageType.Error); } else { ((ICommon)this.Master).ShowMessage(args.Message, MessageType.Error); if (args.Severity <= int.Parse(ConfigurationManager.AppSettings["Severity"].ToString())) { //DoLogging stuff here } } }
void ucProf_InquiryDetail1_OnError(object sender, GoProGo.Presentation.ControlErrorArgs args) { ((ICommon)Master).ClearMessage(); ((ICommon)Master).ShowMessage(args.Message, MessageType.Error); }
void ucPubProf_Contact1_OnError(object sender, GoProGo.Presentation.ControlErrorArgs args) { //TODO: Logging ((ICommon)Master).ClearMessage(); ((ICommon)Master).ShowMessage("Inquiry cannot be sent.", MessageType.Error); }
void ucSearch_Category1_OnError(object sender, GoProGo.Presentation.ControlErrorArgs args) { }