Ejemplo n.º 1
0
        //snimanje podataka
        private void SaveData()
        {
            if (!Directory.Exists(".\\ProgramData"))
            {
                Directory.CreateDirectory(".\\ProgramData");
            }
            BinaryWriter bw = new BinaryWriter(new FileStream(".\\ProgramData\\settings.bin", FileMode.Create));

            bw.Write(MarginPercent);
            bw.Write(LineSpacing);
            bw.Write(BookFont);
            bw.Write(BookFontSize);
            AppTheme.Save(bw);
            bw.Close();
        }