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;
        }
Beispiel #2
0
        void CloseAllButThis()
        {
            DocumentContent activeContent = GetManager().ActiveDocument as DocumentContent;

            foreach (DocumentContent cnt in this.GetManager().Documents.ToArray())
            {
                if (cnt != activeContent)
                {
                    cnt.Close();
                }
            }
        }
Beispiel #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();
            }
        }
Beispiel #4
0
 internal FloatingDocumentPane(DocumentFloatingWindow floatingWindow, DocumentContent documentToTransfer)
 {
     _floatingWindow     = floatingWindow;
     _documentToTransfer = documentToTransfer;
 }
Beispiel #5
0
 public RequestDocumentCloseEventArgs(DocumentContent doc)
 {
     DocumentToClose = doc;
 }