本文介绍了WinForms for Long-ish Run?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个旧的(> 10年)VB6应用,我们正在转换为.Net。  它用于控制一个大型的工业流程,因此它非常复杂,包含许多表单和数百个控件。  它还使用MDI,其中为组装的零件创建了多个
的新子窗口,这些窗口可以由用户自由移动。

We have an old (>10 years) VB6 app that we're converting over to .Net.   It's used to control a big industrial process so it's quite complex with many dozens of forms and many hundreds of controls.   It also uses MDI, where multiple new child windows are created for parts being assembled and these windows can be freely moved about by the user.

从VB6到VB的转换.Net或C#,无论是手工还是使用某些第三方工具或服务都相当简单
如果我们坚持使用Windows Forms,因为它接近VB6的原生形式。

A conversion from VB6 to either VB.Net or C#, either by hand or using some 3rd party tools or services is fairly straightforwardif we stick with Windows Forms because that's close to VB6's native forms.

但我们对表格有两种保留意见:

But we have two reservations about Forms:

1. 我们更喜欢WPF -  通过强大的灵活数据绑定,可以轻松创建非常现代,易于设计的UI;我们也可以使用Blend将UI开发与代码隐藏分开。

1.  We prefer WPF -  it's easy to create a very modern, easily-styled UI with powerful flexible data bindings; we can also use Blend to separate out the UI development from the code-behind.

2. 有一些持续的故事表明表格日期已经编号。  我们希望继续在新应用程序中继续开发10年,就像旧版本一样。

2.  There are persistent stories that Forms days are numbered.   We want to continue to do development in the new app for another 10 years, like the old one.

另一方面表单给我们一件难事进入WPF - 自由浮动的MDI窗口。    WPF不支持MDI,而且Codeplex wpfmdi项目似乎已被放弃。

On the other hand forms gives us one thing that's hard to get in WPF - free-floating MDI windows.    WPF doesn't support MDI and the Codeplex wpfmdi projects seems to have been abandoned.

评论或建议?      提前致谢。

Comments or suggestions?       Thanks in advance.

推荐答案

如果你想将其维持十年,工资预测和技术变革就会发挥作用。例如,WPF论坛比这个论坛活跃得多,意味着10年后你可能更有可能找到比Windows Forms
程序员更便宜的WPF程序员。但是,如果您不打算经常改进软件,这可能不会增加您的成本估算。

Salaries projections and technology changes come into play if you want to maintain it for another decade. For example the WPF forum is much more active than this one, means you are probably more likely to find cheaper WPF programmers than Windows Forms programmers 10 years later. However this may not add much to your cost estimate if you do not plan to improve the software frequently.

您可以弥补WF的样式和数据绑定缺陷或添加自由浮动通过购买UI库的MDI窗口到WPF。就像你现在的卡不会加速
Windows Forms所使用的GDI操作一样,你可以购买新的视频卡。

You can make up the styling and data binding deficit of WF or add free floating MDI windows to WPF by purchasing a UI library. just like you can purchase a new video card if the current card does not accelerate GDI operations used by Windows Forms-for now.


这篇关于WinForms for Long-ish Run?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 08:07