Git Product home page Git Product logo

18046302986 / hslcontrolsdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dathlin/hslcontrolsdemo

0.0 1.0 0.0 16.51 MB

HslControls控件库的使用demo,HslControls是一个工业物联网的控件库,基于C#开发,配套HslCommunication组件可以实现工业上位机软件的快速开发,支持常用的工业图形化控件,快速的集成界面开发。 主要包含了按钮,开关,进度条,信号灯,数码管,时钟,曲线显示控件,仪表盘控件,管道控件,瓶子控件,饼图控件,传送带控件,温度计控件,鼓风机控件,阀门控件,电池控件等等。

License: MIT License

C# 100.00%

hslcontrolsdemo's Introduction

             ///\      ///\             /////////\              ///\
            //\\/      //\/           //\\\\\\\\//\            //\\/
           //\/       //\/          //\\/       \\/           //\/
          //\/       //\/           \//\                     //\/
         /////////////\/             \//////\               //\/
        //\\\\\\\\\//\/               \\\\\//\             //\/
       //\/       //\/                     \//\           //\/
      //\/       //\/           ///\      //\\/          //\/       //\   
     ///\      ///\/            \/////////\\/           /////////////\/
     \\\/      \\\/              \\\\\\\\\/             \\\\\\\\\\\\\/             Present by Richard.Hu

HslControls.dll

NuGet Status NuGet Download NetFramework Visual Studio copyright status

一个工业软件的控件库,配套HslCommunication通信组件使用即可以快速开发上位机的软件系统。本项目不是源代码,是一个DEMO项目的源代码。本控件库支持windows版本和安卓版,开发不容易,禁止破解,请支持正版,谢谢合作。

Install From Nuget

Install-Package HslControls

输入激活码

在你的程序进入的地方输入激活码即可。

    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main( )
        {
            // 注册控件示例,如果注册失败,你的控件仍然只能使用8个小时
            bool isSuccess = HslControls.Authorization.SetAuthorizationCode( "你的授权码" );
            if (!isSuccess)
            {
                Console.WriteLine( "注册失败" );
            }

            Application.EnableVisualStyles( );
            Application.SetCompatibleTextRenderingDefault( false );
            Application.Run( new FormLoad( ) );
        }
    }

安卓的版本在你的MainActivity里面输入即可

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.activity_main);
            Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
            SetSupportActionBar(toolbar);

            FloatingActionButton fab = FindViewById<FloatingActionButton>(Resource.Id.fab);
            fab.Click += FabOnClick;

            DrawerLayout drawer = FindViewById<DrawerLayout>(Resource.Id.drawer_layout);
            ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, Resource.String.navigation_drawer_open, Resource.String.navigation_drawer_close);
            drawer.AddDrawerListener(toggle);
            toggle.SyncState();

            NavigationView navigationView = FindViewById<NavigationView>(Resource.Id.nav_view);
            navigationView.SetNavigationItemSelectedListener(this);

			// code here
            bool isSuccess = HslControls.Authorization.SetAuthorizationCode( "你的授权码" );
            if (!isSuccess)
            {
                Console.WriteLine( "注册失败" );
            }
        }

Demo

初步实现的控件如下所示(有些为动图,实际需要自己下载demo运行,demo仅支持免费运行8小时):

安卓版的如下

Picture Picture Picture Picture

这是windows版本的界面

Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture Picture

hslcontrolsdemo's People

Contributors

dathlin avatar

Watchers

James Cloos avatar

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.