Good day!
I can not understand how best to deal with architecture, and bydlokod do not want to do.
There is a class of field values which will be edited through the visual component PropertyGrid.
Let's say the class looks like this:
public myClass { public Field Field1{get;set;} public Field Field2 {get;set;} } public Field { public int id{get;set;} public string value{get;set;} } As the field values will be used the list. I suppose that it will be located in DataSet.Tables ["Fields1"] and DataSet.Tables ["Fields2"], which will be filled at the time of the program start from the corresponding xml files, but this is not the point.
The editor himself, as I said, is the propertygrid that receives the myClass object.
In order to be able to edit, classically, each field myClass.Field1 and 2, respectively, are assigned attributes [Editor (FieldEditor, ITypeEditor)].
So I have a catch in which: There is no difference for the editor, they all are lists with a choice, but the filling of the lists is different. I do not want to produce a bunch of editors who will load the data from the necessary files or tables, respectively. How to convey to these editors this list of possible values or references to the tables from which you want to display the choices.