示例#1
0
 private void menuFileDemo_Click(object sender, System.EventArgs e)
 {
     DocumentForm newForm = new DocumentForm();
     newForm.MdiParent = this;
     newForm.Show();
     newForm.Document.Text = "Becuase people are realy bad spelers, ths produc was desinged to prevent speling erors in a text area like ths.";
     this.EnableEditButtons();
 }
示例#2
0
 private void menuFileOpen_Click(object sender, System.EventArgs e)
 {
     DocumentForm newForm = new DocumentForm();
     if (newForm.Open())
     {
         newForm.MdiParent = this;
         newForm.Show();
         this.EnableEditButtons();
     }
 }
示例#3
0
 private void menuFileDemoXml_Click(object sender, System.EventArgs e)
 {
     DocumentForm newForm = new DocumentForm();
     if(File.Exists(this.DemoXmlFile))
         newForm.Document.LoadFile(this.DemoXmlFile, RichTextBoxStreamType.PlainText);
     newForm.MdiParent = this;
     newForm.Show();
     this.EnableEditButtons();
 }