private void TSMI_OpenFile_Click(object sender, EventArgs e) { OpenFileDialog aDlg = new OpenFileDialog(); aDlg.Filter = "Python file (*.py)|*.py"; if (aDlg.ShowDialog() == DialogResult.OK) { _fileName = aDlg.FileName; RTB_ScriptText.Clear(); RTB_ScriptText.LoadFile(_fileName, RichTextBoxStreamType.PlainText); } }
private void TSMI_SaveFile_Click(object sender, EventArgs e) { RTB_ScriptText.SaveFile(_fileName, RichTextBoxStreamType.PlainText); }