示例#1
0
 public static string ShowEditor(string initial, TextEditorType type, bool dialog)
 {
     TextEditor se = new TextEditor(initial, type);
     if (dialog) se.ShowDialog();
     else se.Show();
     return se.saved;
 }
示例#2
0
    public static string ShowEditor(string initial, TextEditorType type, bool dialog)
    {
      var se = new TextEditor(initial, type);
      se.Text = "Readme editor";

      if (dialog)
      {
        se.ShowDialog();
      }
      else
      {
        se.Show();
      }
      return se.saved;
    }