JiuLing.Controls.WinForms
0.0.3
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Framework 4.5
This package targets .NET Framework 4.5. The package is compatible with this framework or higher.
dotnet add package JiuLing.Controls.WinForms --version 0.0.3
NuGet\Install-Package JiuLing.Controls.WinForms -Version 0.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JiuLing.Controls.WinForms" Version="0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JiuLing.Controls.WinForms" Version="0.0.3" />
<PackageReference Include="JiuLing.Controls.WinForms" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JiuLing.Controls.WinForms --version 0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JiuLing.Controls.WinForms, 0.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JiuLing.Controls.WinForms@0.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JiuLing.Controls.WinForms&version=0.0.3
#tool nuget:?package=JiuLing.Controls.WinForms&version=0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
1. JiuLing.Controls.WinForms
一个WinForms下的控件库
2. 开始使用
提示对话框(MessageBoxUtils)
底层使用MessageBox.Show的弹窗扩展。
//设置全局的弹窗标题,(caption参数)
MessageBoxUtils.SetTitle("测试程序");
//显示消息,MessageBoxIcon.Information
MessageBoxUtils.ShowInfo("这是一条消息");
//显示警告,MessageBoxIcon.Warning
MessageBoxUtils.ShowWarn("这是一条警告");
//显示错误,MessageBoxIcon.Error
MessageBoxUtils.ShowError("这是一条错误");
日志打印组件(MessageListView)
属性
//日志显示最大行数
MessageListView.MaxRows=100;
//日志详情列宽
MessageListView.MessageColumnWidth=400;
//日志的排序方式
MessageListView.OrderBy=Enums.OrderByEnum.ASC;
方法
//显示消息
MessageListView.ShowInfo(DateTime.Now, $"这是一条消息");
//显示警告
MessageListView.ShowWarn(DateTime.Now, $"这是一条警告");
//显示错误
MessageListView.ShowError(DateTime.Now, $"这是一条错误");
3. License
本项目基于MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- No dependencies.
-
net5.0-windows7.0
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.