Esempio n. 1
0
        private DocumentForm NewDocument()
        {
            DocumentForm doc = new DocumentForm();

            doc.Text = string.Format(CultureInfo.CurrentCulture, "{0}{1}", newDocumentName, ++newDocumentCount);
            doc.Show(dockPanel);
            Core_StateChanged(core, null);
            return(doc);
        }
Esempio n. 2
0
        private DocumentForm OpenFile(string filePath)
        {
            DocumentForm doc = new DocumentForm();

            doc.LoadFile(filePath);
            doc.Show(dockPanel);
            Core_StateChanged(core, null);

            return(doc);
        }
Esempio n. 3
0
        private void dockPanel_ActiveContentChanged(object sender, EventArgs e)
        {
            Text = "ASM";

            DocumentForm doc = dockPanel.ActiveContent as DocumentForm;

            if (doc != null)
            {
                ActiveDocument = doc;
            }
            else if (!ActiveDocument.Created)
            {
                ActiveDocument = null;
            }

            if (ActiveDocument != null)
            {
                Text += " - " + ActiveDocument.Text;
            }
            Core_StateChanged(core, null);
        }