业务逻辑层 [英] Business Logic Layer

查看:94
本文介绍了业务逻辑层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的专家,

我正在用c#winform从事一个小型企业项目.假设某人想要日期在"dd/MM/YYYY"中,某人想要日期在"dd.MM.YYYY"中.以所需的颜色形成背景颜色.所需样式的按钮.

我想将这样的设置存储在数据库或xml或文本文件中.但是哪种格式更合适.


我还想存储外观/外观应用程序(例如,表单的颜色,控件的样式等)


请建议我.


--- Anil Kumar Bhakta

Dear Experts,

I am working on a small business project in c# winform. Suppose someone wants date in "dd/MM/YYYY", someone wants date in "dd.MM.YYYY". Forms background colors in desired colores. Buttons in desired style.

I want to store such settings either in database or in xml or in text file. But which format is better for this.


I want to also store the appearance/looks application(like, color of forms, style of controls etc.)


Kindly suggest me.


--- Anil Kumar Bhakta

推荐答案

我通常将这些内容保存在设置文件中,该文件以XML存储.您可以在应用程序中包括各种设置文件,例如应用程序设置,用户设置等.这是
的MSDN链接 在C#中使用设置 [
I generally keep these sort of things in a settings file, which is stored in XML. You can include various settings files in your application such as Application Settings, User Settings etc. Here is the MSDN link for
Using Settings in C#[^]

Hope this helps


我在CP中找到了这篇不错的文章

C#中的Windows窗体用户设置 [
I found this nice article in CP

Windows Forms User Settings in C#[^]


我对此的看法是一小部分,并非如果更改太频繁,请使用文本文件或xml.
大量的值,请使用数据库.
My take on this, small set of values that is not not going to change too frequently, use a text file or xml.
Large set of values, use a database.


这篇关于业务逻辑层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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