public PackageListBox() { InitializeComponent(); PackageInformationPanel.Clear(); Filter.Text = string.Empty; }
public PluginsListBox([NotNull] IFeed feed) { Assert.ArgumentNotNull(feed, nameof(feed)); InitializeComponent(); Feed = feed; PackageInformationPanel.Clear(); Search.Text = string.Empty; }
private void SetPackage([NotNull] object sender, [NotNull] SelectionChangedEventArgs e) { Debug.ArgumentNotNull(sender, nameof(sender)); Debug.ArgumentNotNull(e, nameof(e)); PackageInformationPanel.Clear(); var selecteditem = PackageList.SelectedItem as ListBoxItem; if (selecteditem == null) { return; } var packageListBoxItem = selecteditem.Content as PackageListBoxItem; if (packageListBoxItem == null) { return; } PackageInformationPanel.Package = packageListBoxItem.Package; }
public void Clear() { PackageInformationPanel.Clear(); PackageList.Items.Clear(); }