Xunet.WinFormium
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Xunet.WinFormium --version 1.0.4
NuGet\Install-Package Xunet.WinFormium -Version 1.0.4
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="Xunet.WinFormium" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xunet.WinFormium --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xunet.WinFormium, 1.0.4"
#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.
// Install Xunet.WinFormium as a Cake Addin #addin nuget:?package=Xunet.WinFormium&version=1.0.4 // Install Xunet.WinFormium as a Cake Tool #tool nuget:?package=Xunet.WinFormium&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Xunet.WinFormium
A Lightweight WinForm Application Framework For .NET
Support .NET 8.0
安装
Xunet.WinFormium 以 NuGet 包的形式提供。您可以使用 NuGet 包控制台窗口安装它:
PM> Install-Package Xunet.WinFormium
使用
Program.cs
using Xunet.WinFormium.Core;
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
ServiceConfiguration.Initialize(new StartupOptions
{
Headers = new()
{
{
HeaderNames.UserAgent,
"Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B329 MicroMessenger/5.0.1"
}
},
Storage = new()
{
//StorageName = "Xunet.WinFormium.Tests",
//EntityTypes = [typeof(TestModel)]
},
Generator = new()
{
WorkerId = 1
}
});
Application.Run(new MainForm());
}
}
MainForm.cs
using Xunet.WinFormium
public class MainForm : BaseForm
{
protected override string BaseText => $"测试 - {Version}";
protected override Size BaseClientSize => new(600, 400);
protected override int BaseDoWorkInterval => 60;
protected override void DoWork(CancellationToken cancellationToken)
{
Task.Run(async () =>
{
try
{
AppendBox(this, "开始工作,请稍后 ...", ColorTranslator.FromHtml("#1296db"));
// TODO
AppendBox(this, "工作完成!", ColorTranslator.FromHtml("#1296db"));
}
catch (Exception ex)
{
AppendBox(this, "系统错误!", Color.Red);
AppendBox(this, ex.ToString(), Color.Red);
}
}, cancellationToken);
}
}
更新日志
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0-windows7.0
- FluentScheduler (>= 5.5.1)
- HtmlAgilityPack (>= 1.11.62)
- Jint (>= 3.1.5)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
- SqlSugarCore (>= 5.1.4.166)
- Yitter.IdGenerator (>= 1.0.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.17 | 88 | 11/12/2024 |
1.0.16 | 96 | 11/11/2024 |
1.0.15 | 101 | 11/11/2024 |
1.0.14 | 77 | 10/16/2024 |
1.0.13 | 87 | 10/15/2024 |
1.0.12 | 88 | 10/15/2024 |
1.0.11 | 128 | 8/16/2024 |
1.0.10 | 113 | 8/14/2024 |
1.0.9 | 111 | 8/14/2024 |
1.0.8 | 112 | 8/12/2024 |
1.0.7 | 122 | 8/9/2024 |
1.0.6 | 104 | 8/7/2024 |
1.0.5 | 101 | 8/7/2024 |
1.0.4 | 105 | 8/7/2024 |
1.0.3 | 100 | 8/7/2024 |
1.0.2 | 81 | 8/6/2024 |