コード例 #1
0
        public override bool Click()
        {
            NSControl control = ResultObject as NSControl;

            if (control == null)
            {
                return(false);
            }

            control.PerformClick(null);
            return(true);
        }
コード例 #2
0
        public override bool Click()
        {
            NSControl control = ResultObject as NSControl;

            if (control == null)
            {
                return(false);
            }

            using (var nsObj = new NSObject())
                control.PerformClick(nsObj);
            return(true);
        }