/// <summary> /// Resets all values under advanced settings to their defaults, /// and asks the user whether to remove all stored bitmaps. /// </summary> public void ResetSettings() { SettingExtender.SaveDefaultSettings(); SettingManager.LoadSettings(); QuestionPopup.ActivatePopup(DeleteBitmapsPrompt, yes => { if (yes) { string path = Path.Combine(BitmapEncoding.PersistentPath, BitmapEncoding.BitmapFileName); if (File.Exists(path)) { File.Delete(path); } print("Deleted bitmaps"); TakePicture.Instance.storedBitmaps = BitmapEncoding.LoadBitmaps(); } }); }
public UsingSetting() { Sut = new SettingExtender(MockedTwitchClientManager.Object, MockedWriter.Object); }