/// ----------------------------------------------------------------------------- /// <summary> /// cmdDelete_Click runs when the delete Button is clicked /// </summary> /// <remarks> /// </remarks> /// <history> /// [cnurse] 9/17/2004 Updated to reflect design changes for Help, 508 support /// and localisation /// </history> /// ----------------------------------------------------------------------------- protected void OnDeleteClick(Object sender, EventArgs e) { var objLogTypeConfigInfo = new LogTypeConfigInfo(); var l = new LogController(); objLogTypeConfigInfo.ID = Convert.ToString(ViewState["LogID"]); try { l.DeleteLogTypeConfigInfo(objLogTypeConfigInfo); UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("ConfigDeleted", LocalResourceFile), ModuleMessage.ModuleMessageType.GreenSuccess); BindSummaryData(); } catch { UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("DeleteError", LocalResourceFile), ModuleMessage.ModuleMessageType.RedError); } }