Beispiel #1
0
        public DataEditor(IData data, TextFieldPreviewablePrevalueModel prevalueModel)
        {
            Data = data;
            TextFieldPreviewablePrevalueModel = prevalueModel;

            Page page = HttpContext.Current.CurrentHandler as Page;

            if (page != null)
            {
                _editorControl            = (DataEditorControl)page.LoadControl("/Umbraco/TextFieldPreviewable/InfoCaster.Umbraco.TextFieldPreviewable.UI.DataEditorControl.ascx");
                _editorControl.DataEditor = this;
            }
        }
Beispiel #2
0
        /// <summary>
        /// This method returns the Changes Set
        /// </summary>
        public ChangesSet GetChangesSet()
        {
            // initial value
            ChangesSet changesSet = null;

            // If the DataEditorControl object exists
            if (DataEditorControl != null)
            {
                // set the return value
                changesSet = DataEditorControl.GetChangesSet();
            }

            // return value
            return(changesSet);
        }