protected void ОткрытьФайл(object sender, EventArgs e) { ДиалогОткрытьФайл.ShowDialog(); filename = ДиалогОткрытьФайл.FileName; if (!filename.Equals("")) { Текст.LoadFile(filename, RichTextBoxStreamType.PlainText); Text = filename; } }
protected void СохранитьКак(object sender, EventArgs e) { ДиалогСохранить.ShowDialog(); if (!ДиалогСохранить.FileName.Equals("")) { filename = ДиалогСохранить.FileName; Текст.SaveFile(filename, RichTextBoxStreamType.PlainText); Text = filename; } }
protected void ВыделитьВсе(object sender, EventArgs e) { Текст.SelectAll(); }
protected void СоздатьНовыйФайл(object sender, EventArgs e) { Текст.Clear(); }
protected void Отменить(object sender, EventArgs e) { Текст.Undo(); }
protected void Вернуть(object sender, EventArgs e) { Текст.Redo(); }