コード例 #1
0
        private TabClientProxy CreateProxy(object view)
        {
            var proxy = new TabClientProxy
            {
                Content = view,
                CommonData = RegionUtility.GetInterfaceFromView<ICommonData>(view)
            };

            this.itemToTabClientMapping.Add(view, proxy);

            return proxy;
        }
コード例 #2
0
        private bool ContainsView(TabablzControl window, TabClientProxy proxy)
        {
            if (proxy == null || window == null) return false;

            return window.Items.OfType<TabClientProxy>().Any(tc => tc == proxy);
        }