如何建立一个面向对象的应用程序 [英] How to build up an OO-Application

查看:68
本文介绍了如何建立一个面向对象的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

从概念的角度来看,我对OOP主题还比较陌生.我目前正计划重写一个旧的应用程序.其中心是一个(非数据绑定的)datagridview.我只是想为每个数据列编写自己的列类以管理每个列的细节,或者使用标准列和中央验证功能是一个好主意吗?

任何帮助表示赞赏!谢谢!
Stefan

Hello everyone,

i am relatively new to the OOP-Theme in the perspective of concepts. I am currently planning to rewrite an old application. Center of that is a (non-databound)datagridview. I''m just wondering if it would be a good Idea to write my own Column Class for each Datacolumn to manage the specifics of each Column or to use standard-columns and a central validating function?

Any help is appreciated! Thanks!
Stefan

推荐答案

这完全取决于您的列应具有的功能.如果它们是标准的,那么为什么要制作自定义的?

另外,不要忘记拥有对标准控件的支持(网站和人员)要比对定制控件进行支持要容易得多.

很少有权衡的.进行相应的分析并采取行动.
It all depends on what features your columns are suppose to have. If they are provided by standard ones then why to make a custom one?

Also, don''t forget that having support(websites and people) on standard controls would be much easier than having one for custom made.

There are few trade-off''s. Analyse and act accordingly.


这篇关于如何建立一个面向对象的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆