Exemplo n.º 1
0
 /// <summary>
 /// обновление данных в treeview
 /// </summary>
 private void RefreshInfo()
 {
     StudentCardsTreeView.Nodes.Clear();
     _dataStudent = _manager.LoadStudentData();
     LoadInfoToTree();
     StudentCardsTreeView.Refresh();
     StudentCardsTreeView.ExpandAll();
     StudentCardsTreeView.Nodes[0]?.EnsureVisible();
 }
Exemplo n.º 2
0
 private void SearchButton_Click(object sender, EventArgs e)
 {
     if (searchStudentList != null)
     {
         searchStudentList.Clear();
     }
     search = true;
     Search();
     LoadSearchStudents();
     RefreshInfo();
     StudentCardsTreeView.ExpandAll();
 }