Пример #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();
 }