예제 #1
0
        public void CreateNewWindow()
        {
            //create and show a new window..
            TextDocumentView view = new TextDocumentView();

            view.Show();
        }
예제 #2
0
        public void RegisterDocumentView(TextDocumentView view)
        {
            //Store the view in the list of views...
            Documents.Add(view);

            //Hook into the "closed" event...
            view.Closed += new EventHandler(ViewClosed);
        }
예제 #3
0
        [STAThread()] static void Main()
        {
            //Store the current manger...
            _current = new DocumentManager();

            //Create the first view...
            TextDocumentView view = new TextDocumentView();

            view.Show();

            //Run the application...
            Application.Run();
        }