示例#1
0
 /// <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();
         }
     });
 }
示例#2
0
 public UsingSetting()
 {
     Sut = new SettingExtender(MockedTwitchClientManager.Object, MockedWriter.Object);
 }