/// <summary> /// This method was used for the open button in the file menu /// </summary> private void openToolStripMenuItem_Click(object sender, EventArgs e) { MainRTextBox.LoadFile(OpenFileDialog.FileName); //doesn't work }
/// <summary> /// This method was used for the save button in the file menu /// </summary> private void saveToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog.ShowDialog(); MainRTextBox.SaveFile(SaveFileDialog.FileName); }
/// <summary> /// This method was used for the paste button in the edit menu /// </summary> private void pasteToolStripMenuItem_Click(object sender, EventArgs e) { MainRTextBox.Paste(); }
/// <summary> /// This method was used for the undo button in the edit menu /// </summary> private void undoToolStripMenuItem_Click(object sender, EventArgs e) { MainRTextBox.Undo(); }
/// <summary> /// This method was used for the copy button in the edit menu /// </summary> private void copyToolStripMenuItem_Click(object sender, EventArgs e) { MainRTextBox.Copy(); }