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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
对超图的一些地图加载、数据查询、数据处理等功能进行封装,对数据集进行单例化管理。规范项目开发,提高效率
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 | Versions 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.
-
.NETFramework 4.8
- Microsoft.SqlServer.Management.SqlParser (>= 172.0.1)
- SunnyUI (>= 3.6.7)
- Ycd.SuperSql (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.