алилуя
This commit is contained in:
parent
2672be8d1b
commit
1f8701e03c
@ -11,24 +11,24 @@ namespace WinFormForTest
|
||||
customListBox1.AddToList("Ýëåìåíò 1");
|
||||
customListBox1.AddToList("Ýëåìåíò 2");
|
||||
customListBox1.AddToList("Ýëåìåíò 3");
|
||||
Plant pl1 = new Plant("ôðóêò", "ïîìèäîð", "êðàñíûé");
|
||||
Plant pl1 = new Plant("îâîùü", "ïîìèäîð", "êðàñíûé");
|
||||
Plant pl2 = new Plant("îâîùü", "ïîìèäîð", "æ¸ëòûé");
|
||||
Plant pl3 = new Plant("îâîùü", "îãóðåö", "çåë¸íûé");
|
||||
Plant pl4 = new Plant("ôðóêò", "ÿáëîêî", "çåë¸íûé");
|
||||
Plant pl5 = new Plant("ôðóêò", "àïåëüñèí", "îðàíæåâûé");
|
||||
Plant pl6 = new Plant("ôðóêò", "àïåëüñèí", "êðàñíûé");
|
||||
plants.Add(pl1);
|
||||
plants.Add(pl4);
|
||||
plants.Add(pl2);
|
||||
plants.Add(pl5);
|
||||
plants.Add(pl3);
|
||||
plants.Add(pl4);
|
||||
plants.Add(pl5);
|
||||
plants.Add(pl6);
|
||||
LoadTree();
|
||||
}
|
||||
|
||||
public void LoadTree()
|
||||
{
|
||||
customTree1.Hierarcy = new List<string> { "Color", "Name", "Type" };
|
||||
customTree1.Hierarcy = new List<string> { "Type", "Name", "Color" };
|
||||
foreach (Plant plant in plants)
|
||||
{
|
||||
customTree1.AddNode(plant);
|
||||
|
@ -9,9 +9,9 @@ namespace WinFormForTest.TestClasses
|
||||
{
|
||||
public class Plant
|
||||
{
|
||||
[AlwaysCreate]
|
||||
public string Type { get; set; }
|
||||
public string Name { get; set; }
|
||||
[AlwaysCreate]
|
||||
public string Color { get; set; }
|
||||
public Plant(string type, string name, string color)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user