示例#1
0
        private void list_box_classes_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            filtered_imgs.Clear();
            ClassName selected = list_box_classes.SelectedItem as ClassName;

            if (selected == null)
            {
                return;
            }
            foreach (var t in images)
            {
                if (t.Class == selected.Class)
                {
                    filtered_imgs.Add(t);
                }
            }
        }
示例#2
0
        private void list_box_predicted_labels_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            selected_class_images.Clear();

            ClassName selected_class = list_box_predicted_labels.SelectedItem as ClassName;

            if (selected_class == null)
            {
                return;
            }
            foreach (var single_img in all_images)
            {
                if (single_img.Class == selected_class.Class)
                {
                    selected_class_images.Add(single_img);
                }
            }
        }