Simplified proxy management code
[pithos-ms-client] / trunk / Pithos.Client.WPF / Preferences / AddAccountViewModel.cs
index 24503a7..ceba974 100644 (file)
@@ -163,6 +163,11 @@ namespace Pithos.Client.WPF.Preferences
 
                 IsConfirmed = true;
             }
+            catch (PithosException exc)
+            {
+                ClearBusy();
+                MessageBox.Show(exc.Message, "Unable to retrieve credentials");
+            }
             catch (Exception exc)
             {
                 IsConfirmed = false;
@@ -258,14 +263,12 @@ namespace Pithos.Client.WPF.Preferences
             
         }
 
-        public WebProxy Proxy { get; set; }
-
         public async void TestAccount()
         {
             try
             {
                 SetBusy("Validating Credentials", "");
-                var client = new CloudFilesClient(AccountName, Token) { AuthenticationUrl = CurrentServer,Proxy=Proxy };                
+                var client = new CloudFilesClient(AccountName, Token) { AuthenticationUrl = CurrentServer,/*Proxy=Proxy */};                
                 var containers = await TaskEx.Run(() =>
                                                       {
                                                           client.Authenticate();