From 751030b247b5b14483b7655b9879060af0557b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC=20=D0=A5=D0=B0=D1=80=D0=BB?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Fri, 6 Oct 2023 02:50:26 +0400 Subject: [PATCH] =?UTF-8?q?=D1=8B=D1=84=D0=B2=D0=BC=D1=8C=D1=82=D1=84?= =?UTF-8?q?=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TestView/Form1.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TestView/Form1.cs b/TestView/Form1.cs index aca5d9d..f3c3cb0 100644 --- a/TestView/Form1.cs +++ b/TestView/Form1.cs @@ -79,6 +79,7 @@ namespace TestView myTreeView.addItem(new Book("Роман", "Гоголь Н.В.", "Мёртвые души")); myTreeView.addItem(new Book("Роман", "Тургенев И.С.", "Отцы и дети")); myTreeView.addItem(new Book("Фантастика", "Джордж Оруэлл", "1984")); + myTreeView.addItem(new Book("Фантастика", "Роулинг", "Гарри Поттер")); } private void buttonGetValue_Click(object sender, EventArgs e) @@ -95,7 +96,7 @@ namespace TestView private void buttonSetIndex_Click(object sender, EventArgs e) { - myTreeView.SelectedNodeIndex = 0; + myTreeView.SelectedNodeIndex = 1; } private void Form1_Load(object sender, EventArgs e)