/// <summary> /// This is used by the factory to fire when one of these components has /// been created. DO NOT call from anywhere else. /// </summary> /// <param name="component">The TextEditorComponent that was created.</param> internal void _fireComponentCreated(TextEditorComponent component) { if (ComponentCreated != null) { ComponentCreated.Invoke(this, component); } }
public ViewHostComponent createViewHostComponent(MyGUIView view, AnomalousMvcContext context, MyGUIViewHost viewHost) { if (view is TextEditorView) { TextEditorComponent component = new TextEditorComponent(viewHost, (TextEditorView)view); ((TextEditorView)view)._fireComponentCreated(component); return(component); } return(null); }