public BuildControllerWindow(BuildControllerListViewModel model)
        {
            this.model = model;
            this.InitializeComponent();

            this.Grid1.DataContext = this.model;
        }
        private void OnChangeBuildController()
        {
            try
            {
                var items       = this.view.SelectedItems;
                var controllers = this.repository.Controllers;
                var viewModel   = new BuildControllerListViewModel(controllers);

                var  wnd = new BuildControllerWindow(viewModel);
                bool?res = wnd.ShowDialog();
                if (res.HasValue && res.Value)
                {
                    using (new WaitCursor())
                    {
                        this.repository.ChangeBuildController(items.Select(bd => bd.Uri), wnd.SelectedBuildController.Name);
                        this.OnRefresh(new EventArgs());
                    }
                }
            }
            catch (Exception ex)
            {
                this.view.DisplayError(ex);
            }
        }