Giter Site home page Giter Site logo

cymheart / sc Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 12.0 8.53 MB

采用了类似于photoshop分层直接绘制UI的** 设计了c# Direct UI界面库,原理上类似于 wpf, unity3d 中的ugui。 包含报表项目, 报表设计展示打印的c#库,适用于各种复杂表格以及数据内容长度可变表格的快速准确,自适应,在这个项目中,构建了一个底层表格自适应布局的算法,通过配合表格数据导入,建立表格框架,极大方便表格项目开发

License: GNU General Public License v3.0

C# 100.00%

sc's Introduction

Sc

ui界面库 借鉴采用分层直接绘制** 设计了c#UI界面库,原理上类似于 wpf, unity3d 中的ugui

其中printUtils为报表打印程序

此库采用了类似于photoshop分层直接绘制UI的** 设计了c# Direct UI界面库,原理上类似于 wpf, unity3d 中的ugui。 包含报表项目, 报表设计展示打印的c#库,适用于各种复杂表格以及数据内容长度可变表格的快速准确,自适应,在这个项目中,构建了一个底层表格自适应布局的算法,通过配合表格数据导入,建立表格框架,极大方便表格项目开发

下面是demo示例的运行效果 Image text Image text

sc's People

Contributors

cymheart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sc's Issues

实现这种代码怎么样。


    public class Column<T> {
        public Column(string txt, Func<T, string> data, int minWidth = 50, int maxWidth = 80) {  }

        public Column(string txt, params Element[] element) { }
    }

    public class Table<T> : Element {
        public Table(params Column<T>[] columns) { }
    }


    public class TestModel {
        public string Name;
        public string Address;
    }

    public class TestClass {
        TestClass() {
            var table = new Table<TestModel>(
               new("姓名", x => x.Name),
               new("地址", x => x.Address),
               new("地址", x => x.Address),
               new("地址", x => x.Address),
               new("地址", x => x.Address),
               new("地址", x => x.Address),
               new("地址", x => x.Address),
               new("操作", new xButton<TestModel>("编辑", x => {

               }), new xButton<TestModel>("删除", x => {

               }), new xDownList<TestModel>("选择", x => {

               }))
               );
        }
    }

    public class xButton<T> : Element {
        public xButton(string txt, Action<T> action) {

        }
    }

    public class xDownList<T> : Element {
        public xDownList(string txt, Action<T> action) {

        }
    }

    public interface Element { 
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.