Пример #1
0
        public PackageListBox()
        {
            InitializeComponent();

            PackageInformationPanel.Clear();
            Filter.Text = string.Empty;
        }
Пример #2
0
        public PluginsListBox([NotNull] IFeed feed)
        {
            Assert.ArgumentNotNull(feed, nameof(feed));

            InitializeComponent();

            Feed = feed;
            PackageInformationPanel.Clear();
            Search.Text = string.Empty;
        }
Пример #3
0
        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;
        }
Пример #4
0
 public void Clear()
 {
     PackageInformationPanel.Clear();
     PackageList.Items.Clear();
 }