Refactored View command handling

This commit is contained in:
Tig
2024-09-29 18:37:54 -06:00
parent 8fbbba750b
commit 1d633c2fa7
14 changed files with 321 additions and 151 deletions

View File

@@ -444,7 +444,7 @@ public class TreeView<T> : View, ITreeView where T : class
public bool? ActivateSelectedObjectIfAny ()
{
// By default, Command.Accept calls OnAccept, so we need to call it here to ensure that the event is fired.
if (OnAccept () == true)
if (RaiseAcceptEvent () == true)
{
return true;
}