private void menuFileNew_Click(object sender, System.EventArgs e) { DocumentForm newForm = new DocumentForm(); newForm.MdiParent = this; newForm.Show(); this.EnableEditButtons(); }
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(); }
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(); }
private void menuFileOpen_Click(object sender, System.EventArgs e) { DocumentForm newForm = new DocumentForm(); if (newForm.Open()) { newForm.MdiParent = this; newForm.Show(); this.EnableEditButtons(); } }
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(); }