Exemplo n.º 1
0
        /// <summary>
        ///   Displays the versions of the html content in the versions section
        /// </summary>
        private void DisplayVersions()
        {
            var versions = _htmlTextController.GetAllHtmlText(ModuleId);

            foreach (var item in versions)
            {
                item.StateName = GetLocalizedString(item.StateName);
            }
            dgVersions.DataSource = versions;
            dgVersions.DataBind();
        }
Exemplo n.º 2
0
        /// <summary>
        ///   Displays the versions of the html content in the versions section
        /// </summary>
        private void DisplayVersions()
        {
            var versions = _htmlTextController.GetAllHtmlText(ModuleId);

            foreach (var item in versions)
            {
                item.StateName = GetLocalizedString(item.StateName);
            }
            dgVersions.DataSource = versions;
            dgVersions.DataBind();

            phEdit.Visible     = false;
            phPreview.Visible  = false;
            phHistory.Visible  = true;
            cmdEdit.Visible    = true;
            cmdPreview.Visible = true;
            cmdHistory.Visible = false;
        }