public AccountsOverviewViewModel(
     EventBroker eventBroker,
     AccountManager accountManager)
 {
      this.eventBroker = eventBroker;
      this.eventBroker.Register(this);
      this.accountManager = accountManager;
      this.AddAccountCommand = new RelayCommand(this.SwitchToAddAccoutView);
 }
 public AddAccountDialogViewModel(
     AccountManager accountManager, 
     EventBroker eventBroker)
 {
     this.accountManager = accountManager;
     this.eventBroker = eventBroker;
     this.BrowseCommand = new RelayCommand(this.Browse, () => true);
     this.AddAccountCommand = new RelayCommand(
         this.AddAccount, 
         () => this.Username != string.Empty 
            && this.RootFolderPath != string.Empty);
 }