Exemplo n.º 1
0
        internal NavigatorWindowDocumentItem(DocumentContent document)
            : base(document)
        {
            _infoTip = document.InfoTip;
            if (_infoTip == null && document.ToolTip != null && document.ToolTip is string)
            {
                _infoTip = document.ToolTip.ToString();
            }

            _contentTypeDescription = document.ContentTypeDescription;
            _lastActivation         = document.LastActivation;
        }
Exemplo n.º 2
0
        void CloseAllButThis()
        {
            DocumentContent activeContent = GetManager().ActiveDocument as DocumentContent;

            foreach (DocumentContent cnt in this.GetManager().Documents.ToArray())
            {
                if (cnt != activeContent)
                {
                    cnt.Close();
                }
            }
        }
Exemplo n.º 3
0
        void CloseThis(ManagedContent contentToClose)
        {
            if (GetManager() == null)
            {
                return;
            }

            if (contentToClose == null)
            {
                contentToClose = SelectedItem as ManagedContent;
            }

            DockableContent dockableContent = contentToClose as DockableContent;

            if (dockableContent != null)
            {
                dockableContent.Close();
            }
            else
            {
                DocumentContent documentContent = contentToClose as DocumentContent;
                documentContent.Close();
            }
        }
Exemplo n.º 4
0
 internal FloatingDocumentPane(DocumentFloatingWindow floatingWindow, DocumentContent documentToTransfer)
 {
     _floatingWindow     = floatingWindow;
     _documentToTransfer = documentToTransfer;
 }
Exemplo n.º 5
0
 public RequestDocumentCloseEventArgs(DocumentContent doc)
 {
     DocumentToClose = doc;
 }