Based on. Net Framework’s open-source control library and multi-page development framework

Based on. Net Framework’s open-source control library and multi-page development framework

2022-09-14 0 1,153
Resource Number 38443 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

What is recommended in this issue is a . SunnyUI, the C# open-source control library of the Net Framework framework.

 

Based on. Net Framework’s open-source control library and multi-page development framework插图

SunnyUI.Net is based on . Net Framework 4.0+、. Net 5、. C# WinForm open-source control library, tool class library, extension class library, and multi-page development framework for the Net 6 framework.

Software frameworks

Based on. Net Framework’s open-source control library and multi-page development framework插图1

Features

Open-source control library

Based on. Net Framework4.0, native control development, referring to the Element theme style, including buttons, edit boxes, drop-down boxes, data tables, industrial control instruments, statistical charts, including more than 70 commonly used controls, to meet the needs of general development, each control is meticulously crafted, attention to detail
Contains 11 Element-style themes and 6 other themes, and you can customize the theme through the colorful theme mode. Includes the theme management component UIStyleManager, which can switch themes freely

 

Based on. Net Framework’s open-source control library and multi-page development framework插图2 Based on. Net Framework’s open-source control library and multi-page development framework插图3 Based on. Net Framework’s open-source control library and multi-page development framework插图4 Based on. Net Framework’s open-source control library and multi-page development framework插图5 Based on. Net Framework’s open-source control library and multi-page development framework插图6


Utility libraries and extension libraries

Collect and organize the tool libraries that are often used in the development process.

IniFile – Ini file read/write class
Read the file
IniFile ini = new IniFile(“D:setup.ini”);
string name = ini. ReadString(“Setup”, “Name”, “”);
int age = ini. ReadInt(“Setup”, “Age”, 0);

Write the file
IniFile ini = new IniFile(“D:setup.ini”);
ini. Write(“Setup”, “Name”, “Sunny”);
ini. Write(“Setup”, “Age”, 18);
ini. UpdateFile();
IniConfig – The ini configuration file class

There is such a configuration file that saves the address and port of the server, the name of the software, and the name of the city in the software that is needed to display the weather. The configuration file class code is as follows:

[ConfigFile(“ConfigSetting.ini”)]
public class Setting : IniConfig<Setting>
{
[ConfigSection(“Hello”)]
public string SoftName { get; set; }

public string ServerIP { get; set; }

public int ServerPort { get; set; }

public string City { get; set; }

public override void SetDefault()
{
base. SetDefault();
SoftName = “XX Software”;
ServerIP = “192.168.1.2”;
ServerPort = 9090;
City = “Nanjing”;
}
}
Json – Simple Json static class
Converts the specified Json string input to an object of type T
public static T Deserialize(string input)

Convert object obj to Json string
public static string Serialize(object obj)

Read strings from a file to an object of type T
public static T DeserializeFromFile(string filename, Encoding encoding)

Convert object obj to Json string and save it to a file
public static string SerializeToFile(object obj, string filename, Encoding encoding)

Multi-page frames

Reference Element, including 7 common framework styles, only a few lines of simple code to create a multi-page program, its supporting components include UIForm, UIPage, UIFrame, a collection of common control libraries can be used to quickly develop WinForm applications.

Based on. Net Framework’s open-source control library and multi-page development framework插图7

Install and use

1 Nuget Installation

Nuget installation is the most convenient and fast way for Visual Studio to reference control packages.

Installation method 1: Install through the PM command:

Install-Package SunnyUI -Version 3.0.4

Installation method 2: Search for SunnyUI installation through the Nuget package manager:

Based on. Net Framework’s open-source control library and multi-page development framework插图8

2 Download and Install

Open SunnyUI’s code cloud address:
https://gitee.com/yhuse/SunnyUI 。 Click “Clone/Download”, click “Download ZIP”, and follow the prompts to download SunnyUI.Based on. Net Framework’s open-source control library and multi-page development framework插图9

Download the yhuse-SunnyUI-master.zip, then unzip it, and directly reference the compiled dll file, the path is SunnyUIBinnet40SunnyUI.dll, SunnyUIBinnet40SunnyUI.Common.dll, both of which must be referenced.

Create a new Winform project or open your existing Winform project, select the form, display the form designer interface, click “View” – “Toolbox” to display the toolbox, as shown in the following figure:

Based on. Net Framework’s open-source control library and multi-page development framework插图10

In the toolbox, right-click and add a tab:

Based on. Net Framework’s open-source control library and multi-page development framework插图11

Enter SunnyUI:

Based on. Net Framework’s open-source control library and multi-page development framework插图12

Select the SunnyUI tab in the toolbox.

Installation method one: According to the prompt “There are no controls available in this group. Drag an item to this text to add it to the toolbox”, drag SunnyUIBinnet40SunnyUI.dll to the tooltip text, and the SunnyUI controls will be installed automatically

Based on. Net Framework’s open-source control library and multi-page development framework插图13

  • Installation method 2: Right-click and select the item

Based on. Net Framework’s open-source control library and multi-page development framework插图14

On the .NET Framework Components page, click Browse, and select SunnyUIBinnet40SunnyUI.dll:

Based on. Net Framework’s open-source control library and multi-page development framework插图15

Click the OK button to add the SunnyUI component to the tab:

Based on. Net Framework’s open-source control library and multi-page development framework插图16

Okay, that’s it.

This project uses the GPL3.0 open source license, and you can read more content by yourself.

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code Based on. Net Framework’s open-source control library and multi-page development framework https://ictcoder.com/kyym/open-source-control-library-and-multi-page-development-framework-based-on-net-framework.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service