Example #1
0
        // Default Action

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