예제 #1
0
        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;
            }
        }
예제 #2
0
        private void OnAction_OpenFromFile_Execute(object sender, EventArgs e)
        {
            frmTextEditor editor = TextEditorFactory.OpenFile(String.Empty);

            TextEditorFactory.ShowTextEditor(editor);
        }