Пример #1
0
 public AddEnt(Ent parentEnt)
 {
     InitializeComponent();
     this.parentEnt = parentEnt;
     this.ent       = new Ent();
     initLB();
 }
Пример #2
0
 public AddEnt(ActionType actionType)
 {
     InitializeComponent();
     this.actionType = actionType;
     this.ent        = new Ent();
     initLB();
 }
Пример #3
0
 private void initEdit(Ent ent)
 {
     this.ent            = ent;
     tb.Text             = ent.Name;
     gbTypeScene.Enabled = false;
     if (ent.Type == "Text")
     {
         radioButton2.Checked = true;
     }
     else if (ent.Type == "ListObject")
     {
         radioButton3.Checked = true;
     }
     else if (ent.Type == "Position")
     {
         radioButton4.Checked = true;
     }
     edit = true;
     initLB();
 }
Пример #4
0
 public AddEnt(Ent parentEnt, Ent ent)
 {
     InitializeComponent();
     this.parentEnt = parentEnt;
     initEdit(ent);
 }
Пример #5
0
 public AddEnt(ActionType actionType, Ent ent)
 {
     InitializeComponent();
     this.actionType = actionType;
     initEdit(ent);
 }