Вроде исправил
This commit is contained in:
parent
c90b181d85
commit
2bfe317437
@ -99,7 +99,7 @@ namespace WinFormsLibrary
|
|||||||
|
|
||||||
public T GetSelectedClass<T>() where T : new()
|
public T GetSelectedClass<T>() where T : new()
|
||||||
{
|
{
|
||||||
T res = new T();
|
T res = default(T);
|
||||||
TreeNode node = treeView.SelectedNode;
|
TreeNode node = treeView.SelectedNode;
|
||||||
|
|
||||||
if (node.Nodes.Count != 0)
|
if (node.Nodes.Count != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user