摘要
介绍了一种改进的PropertyGrid控件在气象信息综合分析处理系统(Micaps)中的应用。Micaps系统中的PropertyGrid控件主要显示对象或类型的属性,并通过改变属性的值来完成气象信息的综合处理。在以往的Micaps系统中,主要利用Microsoft.NET框架中的标准PropertyGrid控件,对于布尔类型的属性采用的是下拉列表的实现方式,由于Micaps系统中布尔类型的属性比较多且数据量比较大,因此在处理的过程中速度相对缓慢。改进中的PropertyGrid控件将下拉列表的实现方式转换成Checkbox形式,将鼠标由两次点击实现提高到一次点击实现,不仅大大提高了处理速度,还有利于操作的方便,此外,还实现了标准控件的其他基本属性显示;同时提供一个二次开发环境,以便根据不同项目的需求调整显示样式,或在该系统提供的基本功能之上开发新的功能。最后利用.NET中的反射机制实现了向Micaps系统中的移植。
An improved PropertyGrid control in a comprehensive analysis of meteorological information processing system (Micaps) application isintroduced in this article.PropertyGrid Controls in Micaps system mainly display property of object or type,and to complete the comprehensive treatmentof meteorological information by changing the value of the property.In the former Micaps system,the drop-down list is mainly used by Microsoft.NETFramework standard PropertyGrid control to Boolean attributes,but the speed is relatively slow in the processing process for that Boolean type's attributeare quite many,and the data quantity is quite big,This improved PropertyGrid which change drop-down list to checkbox form will not only greatlyincreased the processing speed,but also beneficial to ease of operation by clicking the mouse from two to one.In addition,the PropertyGrid controlachieve the standard of other basic properties of the control display; while providing a secondary development environment in order to adjust according tothe needs of different projects display style,or the basic functions of the system on the development of new features.Finally,the PropertyGrid control istransplanted into Micaps system by using .NET reflection mechanism.
出处
《微型电脑应用》
2011年第9期50-52,6,共4页
Microcomputer Applications
基金
公益性行业(气象)专项(GYHY200806002)
国家气象中心预警工程项目
武汉暴雨研究所基本科研业务项目(1103)