Example #1
0
        private void UpdatePHtext(ETextItemType ItemType, string txt)
        {
            var itemid = Convert.ToInt32(this.ComponentID);

            List <PluggComponent> comps  = this.PluggContainer.GetComponentList();
            PluggComponent        cToAdd = comps.Find(x => x.PluggComponentId == itemid);
            BaseHandler           bh     = new BaseHandler();

            var comtype = cToAdd.ComponentType;

            PHText phText = bh.GetCurrentVersionText(this.CurrentLanguage, itemid, ItemType);

            phText.Text = txt;
            phText.CultureCodeStatus = ECultureCodeStatus.GoogleTranslated;
            phText.CreatedByUserId   = this.UserID;
            if (this.EditCase == 2)
            {
                phText.CultureCodeStatus = ECultureCodeStatus.HumanTranslated;
                bh.SavePhText(phText);
            }
            else
            {
                bh.SavePhTextInAllCc(phText);
            }
            // bh.SavePhText(phText);
            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(this.TabID, "", new string[] { "edit=1", "language=" + this.CurrentLanguage }));
        }
Example #2
0
        protected void btnLabelSave_Click(object sender, EventArgs e)
        {
            BaseHandler bh     = new BaseHandler();
            PHText      phText = this.PHText;

            phText.Text = txtlabel.Text;
            phText.CultureCodeStatus = ECultureCodeStatus.HumanTranslated;
            phText.ModifiedByUserId  = this.UserID;
            bh.SavePhText(phText);
            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(this.TabID, "", new string[] { "edit=1", "language=" + this.CurrentLanguage }));
        }
Example #3
0
        protected void btnSaveRRt_Click(object sender, EventArgs e)
        {
            BaseHandler bh        = new BaseHandler();
            PHText      objPHtext = this.PHText; //new PHText(System.Net.WebUtility.HtmlDecode(richrichtext.Text), this.CurrentLanguage, ETextItemType.PluggComponentRichRichText);

            objPHtext.Text              = richrichtext.Text;
            objPHtext.ModifiedByUserId  = this.UserID;
            objPHtext.CultureCodeStatus = ECultureCodeStatus.HumanTranslated;
            bh.SavePhText(objPHtext);

            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(this.TabID, "", new string[] { "edit=1", "language=" + this.CurrentLanguage }));
        }