public void CreateNewWindow() { //create and show a new window.. TextDocumentView view = new TextDocumentView(); view.Show(); }
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); }
[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(); }