private void ComboBoxCategory_SelectedIndexChanged(object sender, EventArgs e)
        {
            var newCategory = (AnnotationCategory)this.comboBoxCategory.SelectedItem;

            if (this._selectedCategory != newCategory)
            {
                this._selectedCategory = newCategory;
                this.CategorySelected?.Invoke(newCategory);
            }
        }
Esempio n. 2
0
        private async void CategorySelected(AnnotationCategory category)
        {
            switch (category)
            {
            case AnnotationCategory.Unannotated:
                this._showAnnotated = false;
                break;

            case AnnotationCategory.Annotated:
                this._showAnnotated = true;
                break;
            }

            await this.LoadPackagesAsync(this._showAnnotated);
        }