Virtual-TreeView
Virtual-TreeView copied to clipboard
Merge DoCancelEdit() and DoEndEdit() in one procedure with boolean parameter
They contain almost identical code. Use a boolean parameter instead.
Also merge IVTEditLink.CancelEditand EndEdit, they also contain almost identical code.
How would such a procedure and parameter be named? If a good name is found I'd say merge them.
I'd suggest to stick with DoEndEditor use DoTerminateEdit.
What about "IsCancelled"? If true it's a cancel operation, else it's a normal ending.
If editing was canceled then this should be signaled through a parameter of the merged method.