Ejemplo n.º 1
0
 public GridField(JsonComponent owner, string text, string gridName, string fieldName, string gridIndex)
     : base(owner, text)
 {
     this.GridName  = gridName;
     this.FieldName = fieldName;
     this.GridIndex = gridIndex;
 }
Ejemplo n.º 2
0
 public Button(JsonComponent owner, string text)
     : base(owner, text)
 {
     if (IsClick)
     {
         Text += "."; // TODO
     }
 }
Ejemplo n.º 3
0
 private void Constructor(JsonComponent owner, string text)
 {
     this.Type = GetType().Name;
     this.Text = text;
     if (owner != null)
     {
         if (owner.List == null)
         {
             owner.List = new List <JsonComponent>();
         }
         int count = 0;
         foreach (var item in owner.List)
         {
             if (item.Key.StartsWith(this.Type + "-"))
             {
                 count += 1;
             }
         }
         this.Key = this.Type + "-" + count.ToString();
         owner.List.Add(this);
     }
 }
Ejemplo n.º 4
0
 public Label(JsonComponent owner, string text)
     : base(owner, text)
 {
 }
Ejemplo n.º 5
0
 public Input(JsonComponent owner, string text)
     : base(owner, text)
 {
 }
Ejemplo n.º 6
0
 public LayoutContainer(JsonComponent owner, string text)
     : base(owner, text)
 {
 }
Ejemplo n.º 7
0
 public GridKeyboard(JsonComponent owner, string text)
     : base(owner, text)
 {
 }
Ejemplo n.º 8
0
 public JsonComponent(JsonComponent owner, string text)
 {
     Constructor(owner, text);
 }
Ejemplo n.º 9
0
 public Grid(JsonComponent owner, string text, string gridName)
     : base(owner, text)
 {
     this.GridName = gridName;
 }