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