Exemple #1
0
        private void frmPrintFormsEdit_Load(object sender, EventArgs e)
        {
            bool bResult = true;

            if (nPrintFormID.HasValue)
            {
                oPrintForm.ReFillOne((int)nPrintFormID);

                txtPF_Type.Text      = oPrintForm.PF_Type;
                txtPF_Name.Text      = oPrintForm.PF_Name;
                numLinesInPage.Value = oPrintForm.LinesInPage;
                txtNote.Text         = oPrintForm.Note;
                sTemplateText        = oPrintForm.PF_XMLTemplateText;
                if (sTemplateText != null && sTemplateText.Length > 0)
                {
                    btnTemplateClear.Enabled   =
                        btnTemplateGet.Enabled =
                            true;
                }
            }

            if (!bResult)
            {
                Dispose();
            }
        }