public static TextEditor CreateNewEditor(string fileName, string mimeType, TextEditorType textEditorType = TextEditorType.Default) { var result = new TextEditor(currentFactory.CreateNewEditor(fileName, mimeType), textEditorType); InitializeTextEditor(result); return(result); }
public static TextEditor CreateNewEditor(TextEditorType textEditorType = TextEditorType.Default) { var result = new TextEditor(currentFactory.CreateNewEditor(), textEditorType) { ZoomLevel = zoomLevel }; result.ZoomLevelChanged += delegate { zoomLevel.Value = result.ZoomLevel; }; return(result); }