{
//Settings.Reload();
- var preferences = new PreferencesViewModel(_windowManager, _events, this, Settings,currentTab);
- _windowManager.ShowDialog(preferences);
-
+ var preferences = IoC.Get<PreferencesViewModel>();//??new PreferencesViewModel(_windowManager, _events, this, Settings,currentTab);
+ if (!String.IsNullOrWhiteSpace(currentTab))
+ preferences.SelectedTab = currentTab;
+ if (!preferences.IsActive)
+ _windowManager.ShowWindow(preferences);
+ var view = (Window)preferences.GetView();
+ view.NullSafe(v=>v.Activate());
}
public void AboutPithos()
private bool AbandonRetry(PithosMonitor monitor, int retries)
{
- if (retries > 1)
+ if (retries > 3)
{
var message = String.Format("Monitoring of account {0} has failed too many times. Will not retry",
monitor.UserName);