C2025-038 Code cleanup to prevent multiple events from being assigned to the same method.
This commit is contained in:
@@ -566,6 +566,7 @@ namespace Volian.Controls.Library
|
||||
startitm = startitm.GetNext();
|
||||
}
|
||||
if (!setsel2) tvTran.SelectedNode = tvTran.Nodes[0];
|
||||
tvTran.BeforeExpand -= new TreeViewCancelEventHandler(tvTran_BeforeExpand);
|
||||
tvTran.BeforeExpand += new TreeViewCancelEventHandler(tvTran_BeforeExpand);
|
||||
// bug fix. TreeView needs the next two lines to properly display the bottom node. jsj 01/08/2010
|
||||
tvTran.ItemHeight++;
|
||||
@@ -599,6 +600,7 @@ namespace Volian.Controls.Library
|
||||
startitm = startitm.GetNext();
|
||||
}
|
||||
if (!setsel) tvTran.SelectedNode = tvTran.Nodes[0];
|
||||
tvTran.BeforeExpand -= new TreeViewCancelEventHandler(tvTran_BeforeExpand);
|
||||
tvTran.BeforeExpand += new TreeViewCancelEventHandler(tvTran_BeforeExpand);
|
||||
// bug fix. TreeView needs the next two lines to properly display the bottom node. jsj 01/08/2010
|
||||
tvTran.ItemHeight++;
|
||||
|
Reference in New Issue
Block a user