Exemplo n.º 1
0
 //IMainWindowContentFactory
 public IViewManager Create(IPoderosaMainWindow parent)
 {
     Debug.Assert(parent != null);
     Debug.Assert(_defaultViewFactory != null); //�{����Assert�ł͂܂���
     SplittableViewManager pm = new SplittableViewManager(parent, _defaultViewFactory);
     return pm;
 }
Exemplo n.º 2
0
        //IMainWindowContentFactory
        public IViewManager Create(IPoderosaMainWindow parent)
        {
            Debug.Assert(parent != null);
            Debug.Assert(_defaultViewFactory != null); //本当はAssertではまずい
            SplittableViewManager pm = new SplittableViewManager(parent, _defaultViewFactory);

            return(pm);
        }
Exemplo n.º 3
0
        public SplittableViewPane(SplittableViewManager parent, IPoderosaView content)
        {
            _parent = parent;
            Debug.Assert(content != null);
            _content = content;
            IContentReplaceableViewSite site = (IContentReplaceableViewSite)_content.GetAdapter(typeof(IContentReplaceableViewSite));

            if (site != null)
            {
                site.CurrentContentReplaceableView = this;
            }
        }
Exemplo n.º 4
0
 public SplittableViewPane(SplittableViewManager parent, IPoderosaView content)
 {
     _parent = parent;
     Debug.Assert(content != null);
     _content = content;
     IContentReplaceableViewSite site = (IContentReplaceableViewSite)_content.GetAdapter(typeof(IContentReplaceableViewSite));
     if (site != null)
         site.CurrentContentReplaceableView = this;
 }