Exemplo n.º 1
0
        public void ShowEffectDoc(XmlNode effectNode, string projectLocation)
        {
            string effectPath = effectNode.InnerText;

            if (!File.Exists(effectPath) && File.Exists(projectLocation + @"\" + effectPath))
            {
                effectPath = projectLocation + @"\" + effectPath;
            }

            string       fileName = Path.GetFileName(effectPath);
            DocumentView content  = FindDocument(effectPath) as DocumentView;

            if (content != null)
            {
                this.dockPanelEdit.ActiveDocumentPane.ActiveContent = content;
            }
            else
            {
                DocumentView docView = new DocumentView();
                docView.TabText     = fileName;
                docView.ToolTipText = effectPath;
                docView.Tag         = effectNode;
                docView.Show(this.dockPanelEdit);
            }
        }
Exemplo n.º 2
0
        public EditorView()
        {
            InitializeComponent();

            panelTop.BackColor    = dockPanelEdit.Theme.Skin.ColorPalette.MainWindowActive.Background;
            panelBottom.BackColor = dockPanelEdit.Theme.Skin.ColorPalette.MainWindowActive.Background;

            DocumentView doc1 = CreateNewDocument("Document1");
            DocumentView doc2 = CreateNewDocument("Document2");

            doc1.Show(this.dockPanelEdit, DockState.Document);
            doc2.Show(doc1.Pane, null);
        }