示例#1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string title = "Document";
            int    i     = 1;

            while (ContainsDocument(title + i.ToString()))
            {
                i++;
            }

            DocWindow doc = new DocWindow();

            doc.DockManager = dockManager;
            doc.Title       = title + i.ToString();
            doc.Show();

            files.Add(new RecentFile(doc.Title, "PATH" + doc.Title, doc.Title.Length * i));
        }
示例#2
0
        private void NewDocument(object sender, EventArgs e)
        {
            string title = "Document";
            int i = 1;
            while (ContainsDocument(title + i.ToString()))
                i++;

            DocWindow doc = new DocWindow();
            doc.DockManager = dockManager;
            doc.Title = title + i.ToString();
            doc.Show();

            DocWindow doc2 = new DocWindow();
            doc2.DockManager = dockManager2;
            doc2.Title = title + i.ToString();
            doc2.Show();

            files.Add(new RecentFile(doc.Title, "PATH" + doc.Title, doc.Title.Length*i));
        }
示例#3
0
        private void NewDocument(object sender, EventArgs e)
        {
            string title = "Document";
            int i = 1;
            while (ContainsDocument(title + i.ToString()))
                i++;

            DocWindow doc = new DocWindow();
            doc.DockManager = dockManager;
            doc.Title = title + i.ToString();
            doc.Show();

            DocWindow doc2 = new DocWindow();
            doc2.DockManager = dockManager2;
            doc2.Title = title + i.ToString();
            doc2.Show();

            files.Add(new RecentFile(doc.Title, "PATH" + doc.Title, doc.Title.Length*i));
        }