/// <summary> /// обновление данных в treeview /// </summary> private void RefreshInfo() { StudentCardsTreeView.Nodes.Clear(); _dataStudent = _manager.LoadStudentData(); LoadInfoToTree(); StudentCardsTreeView.Refresh(); StudentCardsTreeView.ExpandAll(); StudentCardsTreeView.Nodes[0]?.EnsureVisible(); }
public StudentTable() { InitializeComponent(); new ComboBoxManager().LoadInfoToCourceComboBox(CourceSearchComboBox); _manager = new SaveNLoadManager(); _curriculumInfo = _manager.LoadCurruculumData(); courceList = CreateCourceListForTreeView(); _dataStudent = _manager.LoadStudentData(); _manager.LoadDefaultPhoto(PhotoPictureBox); LoadInfoToTree(); //StudentCardsTreeView.HideSelection = false; }