Пример #1
0
        protected void btnClone_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            this.msg.ClearMessage();

            if (this.CloneNameField.Text.Trim().Length < 1)
            {
                msg.ShowWarning("Please enter a name first.");
            }
            else
            {
                ContentColumn clone = MTApp.ContentServices.Columns.Clone(ContentColumnEditor.ColumnId, this.CloneNameField.Text.Trim());
                this.msg.ShowOk("Column Copied");
            }
            ContentColumnEditor.LoadColumn();
        }
Пример #2
0
        protected void btnClone_Click(object sender, EventArgs e)
        {
            msg.ClearMessage();

            if (CloneNameField.Text.Trim().Length < 1)
            {
                msg.ShowWarning("Please enter a name first.");
            }
            else
            {
                var clone = HccApp.ContentServices.Columns.Clone(ContentColumnEditor.ColumnId,
                                                                 CloneNameField.Text.Trim());
                msg.ShowOk("Column Copied");
            }
            ContentColumnEditor.LoadColumn();
        }
        protected void btnClone_Click(object sender, EventArgs e)
        {
            msg.ClearMessage();

            if (string.IsNullOrEmpty(CloneNameField.Text.Trim()))
            {
                msg.ShowWarning(Localization.GetString("CloneNameEmpty"));
            }
            else
            {
                var clone = HccApp.ContentServices.Columns.Clone(ContentColumnEditor.ColumnId,
                                                                 CloneNameField.Text.Trim());
                msg.ShowOk(Localization.GetString("CopySuccess"));
            }
            ContentColumnEditor.LoadColumn();
        }
Пример #4
0
        protected void btnCopyBlocks_Click(object sender, EventArgs e)
        {
            msg.ClearMessage();

            var c = HccApp.ContentServices.Columns.Find(ContentColumnEditor.ColumnId);

            if (c != null)
            {
                var destinationColumnId = CopyToList.SelectedValue;
                foreach (var b in c.Blocks)
                {
                    HccApp.ContentServices.Columns.CopyBlockToColumn(b.Bvin, destinationColumnId);
                }
                msg.ShowOk("Column Copied");
            }
            else
            {
                msg.ShowError("Copy failed. Unknown Error.");
            }
            ContentColumnEditor.LoadColumn();
        }
        protected void btnCopyBlocks_Click(object sender, EventArgs e)
        {
            msg.ClearMessage();

            var c = HccApp.ContentServices.Columns.Find(ContentColumnEditor.ColumnId);

            if (c != null)
            {
                var destinationColumnId = CopyToList.SelectedValue;
                foreach (var b in c.Blocks)
                {
                    HccApp.ContentServices.Columns.CopyBlockToColumn(b.Bvin, destinationColumnId);
                }
                msg.ShowOk(Localization.GetString("CopySuccess"));
            }
            else
            {
                msg.ShowError(Localization.GetString("CopyFailure"));
            }
            ContentColumnEditor.LoadColumn();
        }
Пример #6
0
        protected void btnCopyBlocks_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            this.msg.ClearMessage();

            ContentColumn c = MTApp.ContentServices.Columns.Find(ContentColumnEditor.ColumnId);

            if (c != null)
            {
                string destinationColumnId = this.CopyToList.SelectedValue;
                foreach (ContentBlock b in c.Blocks)
                {
                    MTApp.ContentServices.Columns.CopyBlockToColumn(b.Bvin, destinationColumnId);
                }
                this.msg.ShowOk("Column Copied");
            }
            else
            {
                this.msg.ShowError("Copy failed. Unknown Error.");
            }
            ContentColumnEditor.LoadColumn();
        }