示例#1
0
        /// <summary>
        /// Creates an edit frame using the current context item
        /// </summary>
        /// <returns></returns>
        public static FortisEditFrame BeginEditFrame(this HtmlHelper helper)
        {
            var frame = new FortisEditFrame(string.Empty, FortisEditFrame.DefaultEditButtons, helper.ViewContext);

            frame.RenderFirstPart();
            return(frame);
        }
示例#2
0
        /// <summary>
        /// Begins the edit frame.
        /// </summary>
        /// <param name="helper"></param>
        /// <param name="buttons">The buttons.</param>
        /// <param name="dataSource">The data source.</param>
        /// <param name="title">The title for the edit frame</param>
        /// <returns></returns>
        public static FortisEditFrame BeginEditFrame(this HtmlHelper helper, string buttons, string dataSource, string title)
        {
            var frame = new FortisEditFrame(title, buttons, dataSource, helper.ViewContext);

            frame.RenderFirstPart();
            return(frame);
        }