What is the Best Practice for linking 2 combo boxes to data from a text file in WPF/C#

Viewed 22

I'm new to coding, and my first task is to rebuild an existing VBA solution into WPF/C#.

Starting from a pipe delineated text file (which is a personnel dataset of 15 fields), I need to...

  1. Set combo box 1 to choose what to search by
  2. Filter Combo box 2 to show only the field selected in Combobox 2
  3. Display all of the fields of the selected record in a text field.

I have built a class for the text file called People, and I have delineated the people and fields into a list.

Should I be using binding to connect the combo boxes, or should I use another class that filters the combo boxes and handles the interaction? I'm trying to think like a better coder, but I don't know which makes more sense.

Thank you for any insight you may have.

0 Answers
Related