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_); }
public ActionPrx newObject(ProcessI process, WidgetI component) { Ice.ObjectPrx obj = process.register(makeObject(component)); return ActionPrxHelper.uncheckedCast(obj); }