/// <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(); }
public void ApplyPresets(CalcPresets presets) { CurrentPresets = presets; CurrentPresets.ToFile(PRESETS_PATH); }