HslControls控件库的使用demo,HslControls是一个工业物联网的控件库,基于C#开发,配套HslCommunication组件可以实现工业上位机软件的快速开发,支持常用的工业图形化控件,快速的集成界面开发。 主要包含了按钮,开关,进度条,信号灯,数码管,时钟,曲线显示控件,仪表盘控件,管道控件,瓶子控件,饼图控件,传送带控件,温度计控件,鼓风机控件,阀门控件,电池控件等等。
///\ ///\ /////////\ ///\ //\\/ //\/ //\\\\\\\\//\ //\\/ //\/ //\/ //\\/ \\/ //\/ //\/ //\/ \//\ //\/ /////////////\/ \//////\ //\/ //\\\\\\\\\//\/ \\\\\//\ //\/ //\/ //\/ \//\ //\/ //\/ //\/ ///\ //\\/ //\/ //\ ///\ ///\/ \/////////\\/ /////////////\/ \\\/ \\\/ \\\\\\\\\/ \\\\\\\\\\\\\/ Present by Richard.Hu
һ????ҵ?????Ŀؼ??⣬????HslCommunicationͨ?????ʹ?ü????Կ??ٿ?????λ????????ϵͳ??????Ŀ????Դ???룬??һ??DEMO??Ŀ??Դ???롣???ؼ???֧??windows?汾?Ͱ??棬?????????ף???ֹ?ƽ⣬??֧?????棬лл??????
Install-Package HslControls
??????Բ??? http://www.hslcommunication.cn/Cooperation
??????Ȩ?? ???? ????֧??VIPȺ ?????Ի?ü????룬֧?ֳ?ʱ?????ʹ?á?
??????Ȩ??????Դ???룩:
????ij??????ĵط????뼤???뼴?ɡ?
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??֧?????????8Сʱ????
?????????
????wpf?汾?Ľ???
????winform?汾?Ľ???