| | |
| | | public static List<ProductData> GetProducts() |
| | | { |
| | | string path = Path.Combine(ParameterManage.FileFolder, "Product.setting"); |
| | | if (!File.Exists(path)) return new List<ProductData>(); |
| | | List<ProductData> datas = XmlHelper.DeserializeFromXml<List<ProductData>>(path); |
| | | return datas; |
| | | } |
| | |
| | | public static List<ParameterData> GetParametersByProductName(string productName) |
| | | { |
| | | string path = Path.Combine(ParameterManage.FileFolder, "Parameter", $"Parameter_{productName}.setting"); |
| | | if (!File.Exists(path)) return new List<ParameterData>(); |
| | | List<ParameterData> datas = XmlHelper.DeserializeFromXml<List<ParameterData>>(path); |
| | | return datas; |
| | | } |