예제 #1
0
        public void LoadTextInEditor(string aText)
        {
            ICSharpCodeEditor editor = new ICSharpCodeEditor();

            editor.SetText(aText);
            editor.Show(DockConatiner, DockState.Document);
            editor.ControlChanged += editor_ControlChanged;
            FormRefresh();
        }
예제 #2
0
        public void AddICSharpEditor(string fileName)
        {
            ICSharpCodeEditor editor = new ICSharpCodeEditor();

            if (fileName != null && fileName != "")
            {
                editor.LoadFile(fileName);
            }
            editor.Show(DockConatiner, DockState.Document);
            editor.ControlChanged += editor_ControlChanged;
            editor.FormClosing    += DockFormClosing;
            FormRefresh();
        }
예제 #3
0
 public void LoadTextInEditor(string aText)
 {
     ICSharpCodeEditor editor = new ICSharpCodeEditor();
     editor.SetText(aText);
     editor.Show(DockConatiner, DockState.Document);
     editor.ControlChanged += editor_ControlChanged;
     FormRefresh();
 }
예제 #4
0
 public void AddICSharpEditor(string fileName)
 {
     ICSharpCodeEditor editor = new ICSharpCodeEditor();
     if (fileName != null && fileName != "") editor.LoadFile(fileName);
     editor.Show(DockConatiner, DockState.Document);
     editor.ControlChanged += editor_ControlChanged;
     editor.FormClosing += DockFormClosing;
     FormRefresh();
 }