// Default Action public override void PerformDefaultAction() { if (OnDefault != null) { OnDefault.Execute(this, new EventParams()); } else { ((Interface)FindParent(typeof(IInterface))).PerformDefaultAction(); } }
public override void PerformDefaultAction() { if ((_mode == FormMode.None) && (OnDefault != null)) { OnDefault.Execute(this, new EventParams()); } else { Close(CloseBehavior.AcceptOrClose); } }