Exemple #1
0
        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));
        }
Exemple #2
0
        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);
        }