Exemple #1
0
 protected bool Equals(Configuration other)
 {
     return string.Equals(Username, other.Username) && string.Equals(Password, other.Password) &&
            SaveCredentials.Equals(other.SaveCredentials) && OpenAfterUpload.Equals(other.OpenAfterUpload) &&
            CopyUrlToClipboard.Equals(other.CopyUrlToClipboard) &&
            UploadAnonymously.Equals(other.UploadAnonymously) &&
            ShowBubbleNotifications.Equals(other.ShowBubbleNotifications);
 }
 private static void CreateDefaultConfig()
 {
     var config = new Configuration{
         CopyUrlToClipboard = false,
         OpenAfterUpload = false,
         ShowBubbleNotifications = false,
         Password = "",
         SaveCredentials = true,
         UploadAnonymously = false,
         Username = ""
     };
     Configuration = config;
     Save();
 }