Example #1
0
 public UITextBoxModel(TextBox control, UISubcomponentModel subcomponent, UIGroupControlModel parent) : base(control, subcomponent, parent)
 {
     textBox = control;
 }
Example #2
0
 public UIGroupControlModel(GroupControl control, UISubcomponentModel subcomponent, UIGroupControlModel parent) : base(control, subcomponent, parent)
 {
     groupControl = control;
     foreach (Control child in groupControl.ChildControls)
     {
         Children.Add(CreateControlModel(child, subcomponent, this));
     }
 }
 public UISpriteCollectionModel(SpriteCollection control, UISubcomponentModel subcomponent, UIGroupControlModel parent) : base(control, subcomponent, parent)
 {
     spriteCollection = control;
     int index = 0;
     foreach (SpriteGroup child in spriteCollection.ChildSpriteGroups)
     {
         Children.Add(new UISpriteGroupModel(subcomponent, this, child, true,
             index == spriteCollection.DefaultSpriteIndex));
         index++;
     }
 }