我创建了一个桌面应用程序 是否有任何书籍或网站上有设计桌面应用程序的示例?
我有这样的代码使其更好(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)