예제 #1
0
        private void NewDocument(string filename)
        {
            var doc = new Document(filename);

            doc.Show(DockManager);
            doc.Activate();
        }
예제 #2
0
        private void NewDocument()
        {
            string title = "New1";
            int    i     = 2;

            while (DockManager.Documents.Any(d => d.Title == title))
            {
                title = "New" + i;
                i++;
            }

            var doc = new Document {
                Title = title
            };

            doc.Show(DockManager);
            doc.Activate();
        }
예제 #3
0
        private void NewDocument()
        {
            string title = "New1";
            int i = 2;
            while (DockManager.Documents.Any(d => d.Title == title))
            {
                title = "New" + i;
                i++;
            }

            var doc = new Document { Title = title };
            doc.Show(DockManager);
            doc.Activate();
        }
예제 #4
0
 private void NewDocument(string filename)
 {
     var doc = new Document(filename);
     doc.Show(DockManager);
     doc.Activate();
 }