Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }