DreamMakerEditor文档 DreamMakerEditor文档
首页
首页
  • 介绍

    • 声明
  • 入门

    • 开发环境搭建

      • 编辑器环境
      • Visual Studio 2022
      • Visual Studio Code
  • 基础

    • 字体

      • 使用位图字体
  • 无网格数据库

    • 介绍
    • 可视化组件特性
    • 接口
      • IGridLessDBItem
      • IPropertyEvent
  • 导出

    • 导出MacOS
  • 杂类笔记

    • Dotnet

      • Dotnet 切换版本
      • ChatGpt API
      • IIS部署Dotnet网站
      • Window Server 安装Sql Server
      • Nginx反向代理
    • 常用软件

      • Github
    • Git

      • 常用命令
  • 文档
  • 无网格数据库
后天
2023-03-01
目录

接口

# IGridLessDBItem

对于列表数据需要继承IGridLessDBItem 接口,需要实现以下接口

    // 摘要:
    //     无网格数据库项接口
    public interface IGridLessDBItem
    {
        //
        // 摘要:
        //     获取主键
        int GetPrimaryKey();

        //
        // 摘要:
        //     设置主键
        void SetPrimaryKey(int id);

        //
        // 摘要:
        //     获取副键
        string GetTeacherKey();

        //
        // 摘要:
        //     设置副键
        void SetTeacherKey(string name);
    }

# IPropertyEvent

如果希望对象根据某些属性灵活变换组件是否可视,可以继承IPropertyEvent接口

    public interface IPropertyEvent
    {
        //
        // 摘要:
        //     设置属性是否可见
        //
        // 参数:
        //   property_name:
        //
        //   visible:
        public delegate void PropertyVisible(string property_name, bool visible);

        //
        // 摘要:
        //     有值被更改
        //
        // 参数:
        //   property_name:
        //
        //   value:
        //
        //   property_visible_callback:
        void Changed(string property_name, object value, PropertyVisible property_visible_callback);

        //
        // 摘要:
        //     初始化显示
        //
        // 参数:
        //   property_visible_callback:
        void Init(PropertyVisible property_visible_callback);
    }
可视化组件特性
导出MacOS

← 可视化组件特性 导出MacOS→

Theme by Vdoing | Copyright © 2023-2023 广州灵禅网络科技有限公司
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式