public AuthenticateDialogViewModel(ICrunchFacade crunchFacade, IDialogService dialogService)
        {
            _crunchFacade = crunchFacade;
            _dialogService = dialogService;

            Title = "Connect to Crunch";
        }
        public MainWindowViewModel(IDialogService dialogService, Func<AuthenticateDialogViewModel> authenticateViewModelFactory, ICrunchFacade crunchFacade)
        {
            _dialogService = dialogService;
            _authenticateViewModelFactory = authenticateViewModelFactory;
            _crunchFacade = crunchFacade;

            _crunchFacade.ConnectionStatusChanged += delegate
                                                         {
                                                             // the event gets raised on a background thread, so marshal to the UI thread
                                                             Task.Factory.StartNew(UpdateConnectedServer,Schedulers.UIThread);
                                                         };
        }