Ycd.SuperFrame 1.0.6

dotnet add package Ycd.SuperFrame --version 1.0.6                
NuGet\Install-Package Ycd.SuperFrame -Version 1.0.6                
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="Ycd.SuperFrame" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ycd.SuperFrame --version 1.0.6                
#r "nuget: Ycd.SuperFrame, 1.0.6"                
#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 Ycd.SuperFrame as a Cake Addin
#addin nuget:?package=Ycd.SuperFrame&version=1.0.6

// Install Ycd.SuperFrame as a Cake Tool
#tool nuget:?package=Ycd.SuperFrame&version=1.0.6                

对超图的一些地图加载、数据查询、数据处理等功能进行封装,对数据集进行单例化管理。规范项目开发,提高效率

1、工作空间如何打开,配置类对外开放

WorkspaceConfig config = new WorkspaceConfig();
//对config的所有属性进行初始值设定
MapStoreHelper.InitWorkSpace(config); //初始化打开工作空间
MapStoreHelper.BindWorkspace(ucMap1.MapControl); //绑定控件,不绑定也可以进行数据查询、处理等
MapStoreHelper.AddDatasource("testDatasource", MapStoreHelper.Workspace.Datasources["testDatasource"]);//添加到数据集管理字典里方便调用
Datasource d = MapStoreHelper.GetDatasource("testDatasource");  //获取相关数据源示例,单例模式

2、代码示例

//获取数据源,这个根据项目实际情况得到该信息 Datasource d

//第一种方式,查询得到相应的字典集列表数据

List<Dictionary<string, object>> data = RecordsetHelper.GetDataRecord( d, "select a.* from New_Point a ");

//第二种方式,查询返回对应的实体数据,先定义与表相同的实体信息

List<NewPoint> dataList=RecordsetHelper.GetDataRecord<NewPoint>(d, "select a.* from New_Point a ");

3、数据处理过程监听示例

1)编写数据处理类,继承 FunctionProcesser ,查看代码 WaterProcess类示例

2)调用示例

private void FrmMain_Load(object sender, EventArgs e)
{
    IFunctionProcesser fp = new WaterProcess();
    fp.OnStateChange += Fp_OnChange;
    fp.Process();
    string state = fp.Status;
}
private void Fp_OnChange(string message)
{
    Console.WriteLine(message);
}
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.6 112 6/27/2024
1.0.5 113 6/27/2024
1.0.4 109 6/27/2024
1.0.3 108 6/26/2024
1.0.2 110 6/26/2024 1.0.2 is deprecated because it has critical bugs.
1.0.1 119 6/14/2024
1.0.0 100 6/14/2024