コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }