コード例 #1
0
ファイル: UIBase.cs プロジェクト: tongxin3267/alabo
        /// <summary>
        ///     转换成访问链接
        /// </summary>
        /// <param name="name"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        public static TableAction ToLinkAction(string name, string url, Flaticon flaticon = Flaticon.Interface5)
        {
            var tableAction = new TableAction {
                Name     = name,
                Url      = url,
                IconType = flaticon,
                Type     = ActionLinkType.Link
            };

            return(tableAction);
        }
コード例 #2
0
ファイル: UIBase.cs プロジェクト: tongxin3267/alabo
        /// <summary>
        ///     转换成删除链接
        /// </summary>
        /// <param name="name"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        public static TableAction ToDialogAction(string name, string url, Flaticon flaticon = Flaticon.Dashboard)
        {
            var tableAction = new TableAction {
                Name     = name,
                Url      = url,
                IconType = flaticon,
                Type     = ActionLinkType.Dialog
            };

            return(tableAction);
        }
コード例 #3
0
ファイル: UIBase.cs プロジェクト: tongxin3267/alabo
        public static TableAction ToLinkAction(string name, TableActionType tableActionType, Type formType,
                                               Flaticon flaticon = Flaticon.Interface5)
        {
            var tableAction = new TableAction {
                Name       = name,
                FormType   = formType.Name,
                IconType   = flaticon,
                Type       = ActionLinkType.Dialog,
                ActionType = tableActionType
            };

            return(tableAction);
        }