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; }
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; }