Smrf.NodeXL.ExcelTemplate.ExportedFilesDescriptionControl.DoDataExchange C# (CSharp) Method

DoDataExchange() protected method

protected DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
bFromControls System.Boolean
return System.Boolean
    DoDataExchange
    (
        Boolean bFromControls
    )
    {
        AssertValid();

        if (bFromControls)
        {
            String sTitle;

            if (
                !FormUtil.ValidateRequiredTextBox(txbTitle,
                
                    String.Format(
                        "Enter a {0}."
                        ,
                        lblTitle.Text.ToLower().Replace("&", String.Empty)
                            .Replace(":", String.Empty)
                        ),

                    out sTitle)
                )
            {
                return (false);
            }

            m_sTitle = sTitle;
            m_sDescription = txbDescription.Text.Trim();
        }
        else
        {
            txbTitle.Text = m_sTitle;
            txbDescription.Text = m_sDescription;
        }

        return (true);
    }