public void LoadTextFile(string fileName) { frmTextEditor frm = null; try { frm = TextEditorFactory.OpenFile(fileName); TextEditorFactory.ShowTextEditor(frm); } catch (Exception ex) { frm.Dispose(); frm = null; throw ex; } }
private void OnAction_OpenFromFile_Execute(object sender, EventArgs e) { frmTextEditor editor = TextEditorFactory.OpenFile(String.Empty); TextEditorFactory.ShowTextEditor(editor); }