public ManageBuildsViewModel(IAccountService accountService, IMessenger messenger, IBuildService buildService)
        {
            _accountService = accountService;
            _messenger = messenger;
            _buildService = buildService;

            Accounts = _accountService.GetAccounts();
            _messenger.Register<AccountsUpdate>(this, update =>
            {
                Accounts = _accountService.GetAccounts();
            });

            CloseDialogCommand = new RelayCommand(CloseDialog);
            UpdateAccountsCommand = new RelayCommand(UpdateAccounts);
            EditAccountCommand = new RelayCommand<Account>(EditAccount);
            RemoveAccountCommand = new RelayCommand<Account>(RemoveAccount);
            RefreshAccountCommand = new RelayCommand<Account>(RefreshAccount);
            AddAccountCommand = new RelayCommand(AddAccount);

            IsUpdateEnabled = true;
            NotifyOnStart = _buildService.GetNotifyOnStart();
            NotifyOnFinish = _buildService.GetNotifyOnFinish();
        }
        public ManageBuildsViewModel(IAccountService accountService, IMessenger messenger, IBuildService buildService)
        {
            _accountService = accountService;
            _messenger      = messenger;
            _buildService   = buildService;

            Accounts = _accountService.GetAccounts();
            _messenger.Register <AccountsUpdate>(this, update =>
            {
                Accounts = _accountService.GetAccounts();
            });

            CloseDialogCommand    = new RelayCommand(CloseDialog);
            UpdateAccountsCommand = new RelayCommand(UpdateAccounts);
            EditAccountCommand    = new RelayCommand <Account>(EditAccount);
            RemoveAccountCommand  = new RelayCommand <Account>(RemoveAccount);
            RefreshAccountCommand = new RelayCommand <Account>(RefreshAccount);
            AddAccountCommand     = new RelayCommand(AddAccount);

            IsUpdateEnabled = true;
            NotifyOnStart   = _buildService.GetNotifyOnStart();
            NotifyOnFinish  = _buildService.GetNotifyOnFinish();
        }