从网络应用程序创建独立应用程序时要使用什么?
我被要求从网络应用程序创建一个独立的应用程序 - 我必须保持相同的外观和感觉,当然还有功能。基本上,最终结果应该如下:一个独立的产品,其外观和功能与其基于网络的对应产品完全相同。
我已经使用 asp.net 和 c# 进行开发一段时间了,但我怀疑这是否容易转换为独立的 C# 应用程序。
我听说过一些关于 xaml 的东西 - 但我不知道用什么来让我的生活更轻松一点。
我应该离开 .Net 平台并转向 Java 吗?或者,如果我保留 .Net,我应该使用什么?
I was asked to create a stand alone application from a web app - I have to keep the same look and feel and of course the functionality. Basically, the end result should be the following: a standalone product that looks and does exactly the same thing as its web - based counterpart.
I have been developing for some time with asp.net and c#, but I doubt this is easy to convert to a standalone C# application.
I heard some stuff about xaml - but I am not sure what to use to make my life a little bit easier.
Should I just leave the .Net platform and turn to Java? Or if I keep the .Net what should I use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最好保留在 .net 中,因为迁移代码会更容易。
而且.net 在桌面应用程序方面比java 更好。
better to keep in .net as it would be easier to migrate the code.
and .net is better than java in terms of desktop apps.
Web 和桌面应用程序从根本上来说是完全不同的(ASP.NET Web 窗体开发人员会提出相反的观点),但您应该能够重用大量业务逻辑(特别是如果您正确地分离了您的关注点)。我建议从一个新的 Windows 窗体项目开始,构建一组等效的控件(按钮、网格等),然后寻找借用 UI 逻辑(单击事件等)的机会。
Web and desktop apps are fundamentally quite different (as much as ASP.NET Web Forms developers would argue to the contrary), but you should be able to reuse a lot of your business logic (especially if you separated your concerns properly). I'd suggest starting with a new Windows Forms project, building out an equivalent set of controls (buttons, grids, etc), and then looking for opportunities to borrow UI logic (click events, etc).
如果您的 Web 应用程序是用 ASP.NET 编写的,那么我会坚持使用它。
如果您的 Web 应用程序构建正确,并且新应用程序必须具有完全相同的功能,那么无论您使用 WPF 还是 Windows 窗体,您都应该能够重用大部分代码。您只需要重建 UI 即可。
If your web app is written in ASP.NET, then I would stick with that.
If your web app was built properly and the new app has to have the exact same functionality, then you should be able to re-use most of the code whether you use WPF or Windows forms. You would just need to rebuild the UI.
保留 .Net 代码,看看可以重用多少。告诉您您无法使用户界面的外观和工作方式完全相同,并且会有很多细微的和一些重大的差异。补充一点,添加功能后外观和感觉将相同。
看看是否可以重用基本的数据加载代码。然后只需为 Web 应用程序中的每个页面创建一个表单/面板/标签页,然后看看可以重用哪些内容。
或者更简单的是,使用浏览器窗口创建一个简单的 Windows 应用程序,然后只需指向现有应用程序。
Keep the .Net code and see how much you can reuse. Tell that you can't make the user interface look and work exactly the same and that there will be a lot of minor and some major differences. Add that the look and feel will be the same with added functionality.
See if you can reuse the basic data loading code. Then simply create a form/panel/tabpage for each page in the web application and see what you can reuse.
Or easier yet, create a simple windows application using a browser window and simply point to the existing app.