Esempio n. 1
0
 public bool PackFileShow()
 {
     try
     {
         using (var richEditForm = new RichTextEditor
         {
             RtfText = packFile.RtfText,
             Text = @"Отправляемое сообщение"
         })
             if (richEditForm.ShowDialog() == DialogResult.OK)
             {
                 packFile.RtfText = richEditForm.RtfText;
                 return(true);
             }
     }
     catch (Exception exception)
     {
         XtraMessageBox.Show(exception.Message);
     }
     return(false);
 }
Esempio n. 2
0
 public bool UnpackFileShow()
 {
     try
     {
         using (var richEditForm = new RichTextEditor
         {
             RtfText = unpackFile.RtfText,
             Text = @"Полученное сообщение"
         })
             if (richEditForm.ShowDialog() == DialogResult.OK)
             {
                 unpackFile.RtfText = richEditForm.RtfText;
                 return true;
             }
     }
     catch (Exception exception)
     {
         XtraMessageBox.Show(exception.Message);
     }
     return false;
 }