Esempio n. 1
0
        DataTable attributeData;        //要素属性表
        #endregion


        /// <summary>
        /// 界面新建图层时使用
        /// </summary>
        /// <param name="fp">要素处理器对象</param>
        /// <param name="_name">图层名称</param>
        /// <param name="_type">图层类型</param>
        public MLFeatureClass(MLFeatureProcessor fp, string _name, FeatureType _type)
        {
            id            = fp.NextFeaClassId;//自动根据当前数据库状态生成一个合理的id,所有id的最大值+1
            name          = _name;
            featureType   = _type;
            features      = new List <MLFeature>();
            attributeData = new DataTable();
            attributeData.Columns.Add("ID", typeof(uint));
            attributeData.Columns.Add("Type", typeof(FeatureType));
        }
Esempio n. 2
0
 public MLMainForm()
 {
     dataFrame        = new MLDataFrame.Dataframe();
     FeatureProcessor = new MLFeatureProcessor();
     InitializeComponent();
     featureBox = mlFeatureBox;
     mlFeatureBox.attributeTable.SelectingFeatureChanged += new AttributeTable.SelectingFeatureChangedHandle(attributeTable_SelectingFeatureChanged);
     FeatureProcessor.RecordsChangedHandle += new MLFeatureProcessor.RecordsChanged(mlRecordBox.RefreshRecords);
     FeatureProcessor.RefreshRecords();
     ShowScale();
     mlmap = mlMap;
 }