private IList <IconItem> Icons() { IList <IconItem> icons = new List <IconItem>(); var item1 = new IconItem() { Category = "direction", IconNames = new List <string> { "step-backward", "step-forward", "fast-backward", "fast-forward", "shrink", "arrows-alt", "down", "up", "left", "right", "caret-up", "caret-down", "caret-left", "caret-right", "up-circle", "down-circle", "left-circle", "right-circle", "double-right", "double-left", "vertical-left", "vertical-right", "vertical-align-top", "vertical-align-middle", "vertical-align-bottom", "forward", "backward", "rollback", "enter", "retweet", "swap", "swap-left", "swap-right", "arrow-up", "arrow-down", "arrow-left", "arrow-right", "play-circle", "up-square", "down-square", "left-square", "right-square", "login", "logout", "menu-fold", "menu-unfold", "border-bottom", "border-horizontal", "border-inner", "border-outer", "border-left", "border-right", "border-top", "border-verticle", "pic-center", "pic-left", "pic-right", "radius-bottomleft", "radius-bottomright", "radius-upleft", "radius-upright", "fullscreen", "fullscreen-exit" } }; var item2 = new IconItem() { Category = "suggestion", IconNames = new List <string> { "question", "question-circle", "plus", "plus-circle", "pause", "pause-circle", "minus", "minus-circle", "plus-square", "minus-square", "info", "info-circle", "exclamation", "exclamation-circle", "close", "close-circle", "close-square", "check", "check-circle", "check-square", "clock-circle", "warning", "issues-close", "stop" } }; var item3 = new IconItem() { Category = "editor", IconNames = new List <string> { "edit", "form", "copy", "scissor", "delete", "snippets", "diff", "highlight", "align-center", "align-left", "align-right", "bg-colors", "bold", "italic", "underline", "strikethrough", "redo", "undo", "zoom-in", "zoom-out", "font-colors", "font-size", "line-height", "colum-height", "colum-width", "dash", "small-dash", "sort-ascending", "sort-descending", "drag", "ordered-list", "unordered-list", "radius-setting", "column-width" } }; var item4 = new IconItem() { Category = "data", IconNames = new List <string> { "area-chart", "pie-chart", "bar-chart", "dot-chart", "line-chart", "radar-chart", "heat-map", "fall", "rise", "stock", "box-plot", "fund", "sliders" } }; var item5 = new IconItem() { Category = "logo", IconNames = new List <string> { "android", "apple", "windows", "ie", "chrome", "github", "aliwangwang", "dingding", "weibo-square", "weibo-circle", "taobao-circle", "html5", "weibo", "twitter", "wechat", "youtube", "alipay-circle", "taobao", "skype", "qq", "medium-workmark", "gitlab", "medium", "linkedin", "google-plus", "dropbox", "facebook", "codepen", "code-sandbox", "code-sandbox-circle", "amazon", "google", "codepen-circle", "alipay", "ant-design", "ant-cloud", "aliyun", "zhihu", "slack", "slack-square", "behance", "behance-square", "dribbble", "dribbble-square", "instagram", "yuque", "alibaba", "yahoo", "reddit", "sketch" } }; var item6 = new IconItem() { Category = "other", IconNames = (List <string>)GetOtherItems() }; //remove the exist icon from existed catogory if duplicated var it1 = item6.IconNames.RemoveAll(it => item5.IconNames.Contains(it)); var it2 = item6.IconNames.RemoveAll(it => item4.IconNames.Contains(it)); var it3 = item6.IconNames.RemoveAll(it => item3.IconNames.Contains(it)); var it4 = item6.IconNames.RemoveAll(it => item2.IconNames.Contains(it)); var it5 = item6.IconNames.RemoveAll(it => item1.IconNames.Contains(it)); icons.Add(item1); icons.Add(item2); icons.Add(item3); icons.Add(item4); icons.Add(item5); icons.Add(item6); return(icons); }
private IList <IconItem> Icons() { IList <IconItem> icons = new List <IconItem>(); var item1 = new IconItem() { Category = "direction", IconNames = new List <string> { "step-backward", "step-forward", "fast-backward", "fast-forward", "shrink", "arrows-alt", "down", "up", "left", "right", "caret-up", "caret-down", "caret-left", "caret-right", "up-circle", "down-circle", "left-circle", "right-circle", "double-right", "double-left", "vertical-left", "vertical-right", "vertical-align-top", "vertical-align-middle", "vertical-align-bottom", "forward", "backward", "rollback", "enter", "retweet", "swap", "swap-left", "swap-right", "arrow-up", "arrow-down", "arrow-left", "arrow-right", "play-circle", "up-square", "down-square", "left-square", "right-square", "login", "logout", "menu-fold", "menu-unfold", "border-bottom", "border-horizontal", "border-inner", "border-outer", "border-left", "border-right", "border-top", "border-verticle", "pic-center", "pic-left", "pic-right", "radius-bottomleft", "radius-bottomright", "radius-upleft", "radius-upright", "fullscreen", "fullscreen-exit" } }; var item2 = new IconItem() { Category = "suggestion", IconNames = new List <string> { "question", "question-circle", "plus", "plus-circle", "pause", "pause-circle", "minus", "minus-circle", "plus-square", "minus-square", "info", "info-circle", "exclamation", "exclamation-circle", "close", "close-circle", "close-square", "check", "check-circle", "check-square", "clock-circle", "warning", "issues-close", "stop" } }; var item3 = new IconItem() { Category = "editor", IconNames = new List <string> { "edit", "form", "copy", "scissor", "delete", "snippets", "diff", "highlight", "align-center", "align-left", "align-right", "bg-colors", "bold", "italic", "underline", "strikethrough", "redo", "undo", "zoom-in", "zoom-out", "font-colors", "font-size", "line-height", "colum-height", "colum-width", "dash", "small-dash", "sort-ascending", "sort-descending", "drag", "ordered-list", "unordered-list", "radius-setting", "column-width" } }; var item4 = new IconItem() { Category = "data", IconNames = new List <string> { "area-chart", "pie-chart", "bar-chart", "dot-chart", "line-chart", "radar-chart", "heat-map", "fall", "rise", "stock", "box-plot", "fund", "sliders" } }; var item5 = new IconItem() { Category = "logo", IconNames = new List <string> { "android", "apple", "windows", "ie", "chrome", "github", "aliwangwang", "dingding", "weibo-square", "weibo-circle", "taobao-circle", "html5", "weibo", "twitter", "wechat", "youtube", "alipay-circle", "taobao", "skype", "qq", "medium-workmark", "gitlab", "medium", "linkedin", "google-plus", "dropbox", "facebook", "codepen", "code-sandbox", "code-sandbox-circle", "amazon", "google", "codepen-circle", "alipay", "ant-design", "ant-cloud", "aliyun", "zhihu", "slack", "slack-square", "behance", "behance-square", "dribbble", "dribbble-square", "instagram", "yuque", "alibaba", "yahoo", "reddit", "sketch" } }; var item6 = new IconItem() { Category = "other", IconNames = new List <string> { "account-book", "aim", "alert", "alibaba", "align-center", "align-left", "align-right", "alipay", "alipay-circle", "alipay-square", "aliwangwang", "aliyun", "amazon", "amazon-circle", "amazon-square", "android", "ant-cloud", "ant-design", "apartment", "api", "apple", "appstore", "appstore-add", "area-chart", "arrow-down", "arrow-left", "arrow-right", "arrows-alt", "arrow-up", "audio", "audio-muted", "audit", "backward", "bank", "bar-chart", "barcode", "bars", "behance", "behance-circle", "behance-square", "bell", "bg-colors", "block", "bold", "book", "border", "border-bottom", "border-horizontal", "border-inner", "border-left", "borderless-table", "border-outer", "border-right", "border-top", "border-verticle", "box-plot", "branches", "bug", "build", "bulb", "calculator", "calendar", "camera", "car", "caret-down", "caret-left", "caret-right", "caret-up", "carry-out", "check", "check-circle", "check-square", "chrome", "ci", "ci-circle", "clear", "clock-circle", "close", "close-circle", "close-square", "cloud", "cloud-download", "cloud-server", "cloud-sync", "cloud-upload", "cluster", "code", "codepen", "codepen-circle", "codepen-square", "code-sandbox", "code-sandbox-circle", "code-sandbox-square", "coffee", "column-height", "column-width", "comment", "compass", "compress", "console-sql", "contacts", "container", "control", "copy", "copyright", "copyright-circle", "credit-card", "crown", "customer-service", "dash", "dashboard", "database", "delete", "delete-column", "delete-row", "delivered-procedure", "deployment-unit", "desktop", "diff", "dingding", "dingtalk", "dingtalk-circle", "dingtalk-square", "disconnect", "dislike", "dollar", "dollar-circle", "dot-chart", "double-left", "double-right", "down", "down-circle", "download", "down-square", "drag", "dribbble", "dribbble-circle", "dribbble-square", "dropbox", "dropbox-circle", "dropbox-square", "edit", "ellipsis", "enter", "environment", "euro", "euro-circle", "exception", "exclamation", "exclamation-circle", "expand", "expand-alt", "experiment", "export", "eye", "eye-invisible", "facebook", "fall", "fast-backward", "fast-forward", "field-binary", "field-number", "field-string", "field-time", "file", "file-add", "file-done", "file-excel", "file-exclamation", "file-gif", "file-image", "file-jpg", "file-markdown", "file-pdf", "file-ppt", "file-protect", "file-search", "file-sync", "file-text", "file-unknown", "file-word", "file-zip", "filter", "fire", "flag", "folder", "folder-add", "folder-open", "folder-view", "font-colors", "font-size", "fork", "form", "format-painter", "forward", "frown", "fullscreen", "fullscreen-exit", "function", "fund", "fund-projection-screen", "fund-view", "funnel-plot", "gateway", "gif", "gift", "github", "gitlab", "global", "gold", "golden", "google", "google-circle", "google-plus", "google-plus-circle", "google-plus-square", "google-square", "group", "hdd", "heart", "heat-map", "highlight", "history", "home", "hourglass", "html5", "idcard", "ie", "ie-circle", "ie-square", "import", "inbox", "info", "info-circle", "insert-row-above", "insert-row-below", "insert-row-left", "insert-row-right", "instagram", "insurance", "interaction", "issues-close", "italic", "key", "laptop", "layout", "left", "left-circle", "left-square", "like", "line", "line-chart", "line-height", "link", "linkedin", "loading", "loading-3-quarters", "lock", "login", "logout", "mac-command", "mail", "man", "medicine-box", "medium", "medium-circle", "medium-square", "medium-workmark", "meh", "menu", "menu-fold", "menu-unfold", "merge-cells", "message", "minus", "minus-circle", "minus-square", "mobile", "money-collect", "monitor", "more", "node-collapse", "node-expand", "node-index", "notification", "number", "one-to-one", "ordered-list", "paper-clip", "partition", "pause", "pause-circle", "pay-circle", "percentage", "phone", "pic-center", "pic-left", "pic-right", "picture", "pie-chart", "play-circle", "play-square", "plus", "plus-circle", "plus-square", "pound", "pound-circle", "poweroff", "printer", "profile", "project", "property-safety", "pull-request", "pushpin", "qq", "qq-circle", "qq-square", "qrcode", "question", "question-circle", "radar-chart", "radius-bottomleft", "radius-bottomright", "radius-setting", "radius-upleft", "radius-upright", "read", "reconciliation", "reddit", "reddit-circle", "reddit-square", "red-envelope", "redo", "reload", "rest", "retweet", "right", "right-circle", "right-square", "rise", "robot", "rocket", "rollback", "rotate-left", "rotate-right", "safety", "safety-certificate", "save", "scan", "schedule", "scissor", "search", "security-scan", "select", "send", "setting", "shake", "share-alt", "shop", "shopping", "shopping-cart", "shrink", "signal", "sisternode", "sketch", "sketch-circle", "sketch-square", "skin", "skype", "slack", "slack-circle", "slack-square", "sliders", "small-dash", "smile", "snippets", "solution", "sort-ascending", "sort-descending", "sound", "split-cells", "star", "step-backward", "step-forward", "stock", "stop", "strikethrough", "subnode", "swap", "swap-left", "swap-right", "switcher", "sync", "table", "tablet", "tag", "tags", "taobao", "taobao-circle", "taobao-square", "team", "thunderbolt", "tool", "to-top", "trademark", "trademark-circle", "transaction", "translation", "trophy", "twitter", "twitter-circle", "twitter-square", "underline", "undo", "ungroup", "unlock", "unordered-list", "up", "up-circle", "upload", "up-square", "usb", "user", "user-add", "user-delete", "usergroup-add", "usergroup-delete", "user-switch", "verified", "vertical-align-bottom", "vertical-align-middle", "vertical-align-top", "vertical-left", "vertical-right", "video-camera", "video-camera-add", "wallet", "warning", "wechat", "weibo", "weibo-circle", "weibo-square", "whats-app", "wifi", "windows", "woman", "yahoo", "youtube", "yuque", "zhihu", "zhihu-circle", "zhihu-square", "zoom-in", "zoom-out" } }; //remove the exist icon from existed catogory if duplicated var it1 = item6.IconNames.RemoveAll(it => item5.IconNames.Contains(it)); var it2 = item6.IconNames.RemoveAll(it => item4.IconNames.Contains(it)); var it3 = item6.IconNames.RemoveAll(it => item3.IconNames.Contains(it)); var it4 = item6.IconNames.RemoveAll(it => item2.IconNames.Contains(it)); var it5 = item6.IconNames.RemoveAll(it => item1.IconNames.Contains(it)); icons.Add(item1); icons.Add(item2); icons.Add(item3); icons.Add(item4); icons.Add(item5); icons.Add(item6); return(icons); }