non-trivial information binding


trivial information contracting examples only that, trivial. i wish something small some-more difficult am wondering there's an easy, built proceed hoop it.



public biased category form1 : form
{
open form1()
{
initializecomponent();
list<datastruct> list = new list<datastruct>()
{
new datastruct(){name = "name 1", value = "value 1", complexvalue = new complexvalue(){part1 = "1:p1", part2 = "1:p2"}},
new datastruct(){name = "name 2", value = "value 2", complexvalue = new complexvalue(){part1 = "2:p1", part2 = "2:p2"}}
};

listbox1.datasource = list;
listbox1.displaymember = "complexvalue.part1";
}
}

public category datastruct
{
open twine name { get; set; }
open twine value { get; set; }
open complexvalue complexvalue { get; set; }
}

public category complexvalue
{
open twine part1 { get; set; }
open twine part2 { get; set; }
}


is there an easy proceed value part1 ability set arrangement member list datastruct items? above i attempted something i guess finished sense, nonetheless only defaults behind tostring() datastruct. i work around necessary, i only wondering there something built information contracting hoop some-more challenging information contracting above.



edit: controlling winforms



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members