コード例 #1
0
        public override ComponentPrx[] getChildren(Ice.Current context__)
        {
            AutomationElementCollection childrenList =
                element.FindAll(TreeScope.Children, Condition.TrueCondition);

            ComponentPrx[] components = new ComponentPrx[childrenList.Count];
            for (int i = 0; i < childrenList.Count; i++)
            {
                components[i] = new WGComponent(childrenList[i]).Proxy;
            }
            return(components);
        }
コード例 #2
0
ファイル: WGWindow.cs プロジェクト: csnowleopard/guitar
        public WGWindow(WGComponent component)
        {
            this.component = component;

            WindowPattern wp = component.Element.GetCurrentPattern(
                WindowPattern.Pattern) as WindowPattern;

            modal = wp.Current.IsModal;

            Ice.ObjectPrx base_ = Adapter.Instance.addWithUUID(this);
            proxy = WindowPrxHelper.checkedCast(base_);
        }