Пример #1
0
        // ----------------------- ApplyPromptTitle ---------------------
        private void ApplyPromptTitle( )
        {
            // make the title row visible depending on if a PromptTitle is spcfd.
            AcHtmlTableRow row = FindTableRowControl("PromptTitleRow");

            if (row != null)
            {
                if (PromptTitle == "")
                {
                    row.Visible = false;
                }
                else
                {
                    row.Visible = true;
                }
            }

            // apply the error text to the error text cell.
            AcHtmlTableCell cell = FindTableCellControl("PromptTitleCell");

            if (cell != null)
            {
                cell.InnerHtml = PromptTitle;
            }
        }
Пример #2
0
        // ----------------------- ApplyPromptErrorMessage ---------------------
        private void ApplyPromptErrorMessage( )
        {
            // make the error row visible depending on if an error message to display.
            AcHtmlTableRow row = FindTableRowControl("ErrorRow1");

            if (row != null)
            {
                if (PromptErrorMessage == "")
                {
                    row.Visible = false;
                }
                else
                {
                    row.Visible = true;
                }
            }

            // apply the error text to the error text cell.
            AcHtmlTableCell cell = FindTableCellControl("ErrorText1");

            if (cell != null)
            {
                cell.InnerHtml = PromptErrorMessage;

                // clear the error message after writing it to the prompt.
                SetPromptErrorMessage(null);
            }
        }