AddPackagesDialog CreateDialog (string initialSearch)
		{
			var viewModels = new PackageManagementViewModels ();
			return new AddPackagesDialog (
				viewModels.ManagePackagesViewModel,
				initialSearch);
		}
Пример #2
0
        AddPackagesDialog CreateDialog(string initialSearch)
        {
            var viewModels = new PackageManagementViewModels();

            return(new AddPackagesDialog(
                       viewModels.ManagePackagesViewModel,
                       initialSearch));
        }
		public override Gtk.Widget CreatePanelWidget()
		{
			viewModels = new PackageManagementViewModels ();
			viewModels.RegisteredPackageSourcesViewModel.Load ();
			
			packageSourcesWidget = new PackageSourcesWidget (viewModels.RegisteredPackageSourcesViewModel);
			return packageSourcesWidget;
		}
		protected override void Run ()
		{
			try {
				var viewModels = new PackageManagementViewModels ();
				IPackageManagementEvents packageEvents = PackageManagementServices.PackageManagementEvents;
				using (var dialog = new ManagePackagesDialog (viewModels.ManagePackagesViewModel, packageEvents))
					MessageService.ShowCustomDialog (dialog);
			} catch (Exception ex) {
				LoggingService.LogInternalError (ex);
			}
		}
		public override Control CreatePanelWidget()
		{
			var viewModels = new PackageManagementViewModels ();
			optionsViewModel = viewModels.PackageManagementOptionsViewModel;
			return new PackageManagementOptionsWidget (optionsViewModel);
		}