public static bool GetSTDAction(this Control c, string eventName) { WinFormRef r = (c.Tag as WinFormRef); if (r == null) { return(true); } return(!r.WinFormItem.DisabledSTDActions.Contains(eventName)); }
public static WinForm GetOwner(this Control c) { if (c is WinForm) { return((WinForm)c); } WinFormRef r = (c.Tag as WinFormRef); if (r == null) { return(c.FindForm() as WinForm); } return(r.WinForm); }