public static WindowData Read() { IList <double> list = WindowsOperation.LoadWindowSettings(_path); try { return(list != null ? new WindowData(list[0], list[1], list[2], list[3], list[4], list[5], list[6], list[7], list[8], list[9], list[10], list[11], list[12], list[13]) : defaultData); } catch (Exception) { return(defaultData); } }
public static void Save(WindowData data) { IList <double> list = new List <double> { data.FormXpos, data.FormYpos, data.FormWidth, data.FormHeight, data.ColStatus, data.ColId, data.ColTitle, data.ColUser, data.ColCycle, data.ColDensity, data.ColDate }; WindowsOperation.SaveWindowsSettings(list, _path); }
public static void Save(WindowData data) { IList <double> list = new List <double> { data.FormXpos, data.FormYpos, data.FormWidth, data.FormHeight, data.NumberDWidth, data.NameWidth, data.FunctionWidth, data.PriceWidth, data.DengerWidth, data.VOCWidth, data.RemarksWidth, data.DataWidth, }; WindowsOperation.SaveWindowsSettings(list, _path); }
public static void Save(WindowData data) { IList <double> list = new List <double> { data.FormXpos, data.FormYpos, data.FormWidth, data.FormHeight, data.ColumnLP, data.ColumnComponent, data.ColumnAmount, data.ColumnMass, data.ColumnPriceKg, data.ColumnPrice, data.ColumnVOC, data.ColumnComment }; WindowsOperation.SaveWindowsSettings(list, _path); }
public static void Save(WindowData data) { IList <double> list = new List <double> { data.FormXpos, data.FormYpos, data.FormWidth, data.FormHeight, data.NameWidth, data.FunctionWidth, data.PriceWidth, data.CurrencyWidth, data.UnitWidth, data.DengerWidth, data.ProdWidth, data.ActivWidth, data.VOCWidth, data.DataWidth, }; WindowsOperation.SaveWindowsSettings(list, _path); }