Esempio n. 1
0
        /// <summary>
        /// Empty constructor for Controller
        /// </summary>
        public Controller()
        {
            if (File.Exists(PRESETS_PATH))
            {
                CurrentPresets = CalcPresets.FromFile(PRESETS_PATH);
            }
            else
            {
                CurrentPresets = CalcPresets.Default;
                CurrentPresets.ToFile(PRESETS_PATH);
            }

            GlobalFontSettings.FontResolver = new Report.BarlowFontResolver();
        }
Esempio n. 2
0
 public void ApplyPresets(CalcPresets presets)
 {
     CurrentPresets = presets;
     CurrentPresets.ToFile(PRESETS_PATH);
 }