private static void AddRepositoryAndClose(AddPackageRepositoryWindow window)
        {
            AddPackageRepositoryViewModel vm = (AddPackageRepositoryViewModel)window.DataContext;

            vm.AddRepositoryCommand.Execute(vm);
            window.Close();
        }
        protected override void Execute(Window parameter)
        {
            AddPackageRepositoryViewModel viewModel        = new AddPackageRepositoryViewModel();
            AddPackageRepositoryWindow    addPackageDialog = new AddPackageRepositoryWindow();

            addPackageDialog.CenterInParent(parameter);
            addPackageDialog.DataContext = viewModel;
            addPackageDialog.Show();
        }
        private static bool CanAddRepositoryAndClose(AddPackageRepositoryWindow window)
        {
            if (window == null)
            {
                return false;
            }

            AddPackageRepositoryViewModel vm = (AddPackageRepositoryViewModel)window.DataContext;
            return vm.AddRepositoryCommand.CanExecute(vm);
        }
        private static bool CanAddRepositoryAndClose(AddPackageRepositoryWindow window)
        {
            if (window == null)
            {
                return(false);
            }

            AddPackageRepositoryViewModel vm = (AddPackageRepositoryViewModel)window.DataContext;

            return(vm.AddRepositoryCommand.CanExecute(vm));
        }
 private static void AddRepositoryAndClose(AddPackageRepositoryWindow window)
 {
     AddPackageRepositoryViewModel vm = (AddPackageRepositoryViewModel)window.DataContext;
     vm.AddRepositoryCommand.Execute(vm);
     window.Close();
 }