Exemple #1
0
 /// <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);
     }
 }
Exemple #2
0
 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);
 }