private void UpdateReceiptStyle_Load(object sender, EventArgs e) { CPrintStyle oPrint = new CPrintStyle(); CCommonConstants oConstant = ConfigManager.GetConfig <CCommonConstants>(); oPrint.StyleID = m_styleID; CUserManager oManager = new CUserManager(); CResult oResult = oManager.GetPrintStyle(oPrint); if (oResult.IsSuccess && oResult.Data != null) { oPrint = (CPrintStyle)oResult.Data; txtHeader.Text = oPrint.Header.Trim(); txtMessage.Text = oPrint.Body.Trim(); txtFooter.Text = oPrint.Footer.Trim(); } }