You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

39 lines
808 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WinFormControl
{
public class WeightConfig
{
public string WeightSet { get; set; }
public string ComSet { get; set; }
public int? RateSet { get; set; }
public int? BitSet { get; set; }
public string Format { get; set; }
public decimal? Discont { get; set; }
public int WeightType { get; set; }
public decimal MinWeight { get; set; }
public decimal MaxWeight { get; set; }
public static WeightConfig Init(string flag)
{
return XmlUtil.DeserializeFromFile<WeightConfig>(flag + "WeightConfig");
}
public void Save(string flag)
{
XmlUtil.SerializerObjToFile(this, flag + "WeightConfig");
}
}
}