小编emi*_*ate的帖子

设计桌面应用

我创建了一个桌面应用程序 是否有任何书籍或网站上有设计桌面应用程序的示例?

user-interface desktop-application

5
推荐指数
1
解决办法
8095
查看次数

如何简化选择(如果)

我有这样的代码使其更好(modbus_master.SetValue("x1",Convert.ToInt32(resipeDosings [i] .Massa)*10,1); - 向控制器发送数据)

 public class RecipeDosings
 {
    public string Product { get; set; }
    public string Persent { get; set; }
    public string Massa { get; set; }
    public string Bunker { get; set; }

    public RecipeDosings(string product, string persent, string massa, string bunker)
    {
        this.Product = product;
        this.Persent = persent;
        this.Massa = massa;
        this.Bunker = bunker;
    }
  }

 public List<RecipeDosings> resipeDosings = new List<RecipeDosings>();

        for (int i = 0; i < resipeDosings.Count; i++)
        {
            if (resipeDosings[i].Bunker == …
Run Code Online (Sandbox Code Playgroud)

c# refactoring

0
推荐指数
1
解决办法
148
查看次数