public PackageSourcesWidget(RegisteredPackageSourcesViewModel viewModel) { this.Build(); this.viewModel = viewModel; this.InitializeTreeView(); this.LoadPackageSources(); this.viewModel.PackageSourceViewModels.CollectionChanged += PackageSourceViewModelsCollectionChanged; UpdateEnabledButtons(); }
public PackageSourcesWidget(RegisteredPackageSourcesViewModel viewModel) { this.Build(); this.viewModel = viewModel; this.InitializeTreeView(); this.LoadPackageSources(); AddEventHandlers(); UpdateEnabledButtons(); }
public AddPackageSourceDialog(RegisteredPackageSourcesViewModel viewModel) { Build(); this.viewModel = viewModel; LoadViewModel(); addPackageSourceButton.Clicked += AddPackageSourceButtonClicked; savePackageSourceButton.Clicked += SavePackageSourceButtonClicked; packageSourceNameTextEntry.Changed += PackageSourceNameTextBoxChanged; packageSourceNameTextEntry.Activated += TextEntryActivated; packageSourceUrlTextEntry.Changed += PackageSourceUrlTextBoxChanged; packageSourceUrlTextEntry.Activated += TextEntryActivated; packageSourceUserNameTextEntry.Changed += PackageSourceUserNameTextBoxChanged; packageSourceUserNameTextEntry.Activated += TextEntryActivated; packageSourcePasswordTextEntry.Changed += PackageSourcePasswordTextBoxChanged; packageSourcePasswordTextEntry.Activated += TextEntryActivated; }