public override void HandleEvent(NodeEvent eventValue) { if (eventValue is ViewActionEvent) { switch (((ViewActionEvent)eventValue).Action) { case (SourceActions.Post): if (OnPost != null) { OnPost.Execute(); } break; case (SourceActions.Cancel): if (OnCancel != null) { OnCancel.Execute(); } break; } } base.HandleEvent(eventValue); }