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();
        }
 private void NewDocument(string filename)
 {
     var doc = new Document(filename);
     doc.Show(DockManager);
     doc.Activate();
 }