Пример #1
0
        public WidgetI(ProcessI process, AutomationElement element)
        {
            this.process = process;
            this.element = element;

            title = element.Current.Name;
            boundingRect = element.Current.BoundingRectangle;
            automationId = element.Current.AutomationId;
            controlType = element.Current.ControlType.ProgrammaticName;

            /* Add this component to the adapter */
            Ice.ObjectPrx base_ = process.register(this);
            proxy = WidgetPrxHelper.uncheckedCast(base_);
        }
Пример #2
0
 public ActionPrx newObject(ProcessI process, WidgetI component)
 {
     Ice.ObjectPrx obj = process.register(makeObject(component));
     return ActionPrxHelper.uncheckedCast(obj);
 }