Example #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     var form = new EditLEDScreenForm();
     form.BindData();
     if (form.ShowDialog() == DialogResult.OK)
     {
         LEDScreenTab_ParentChanged(null, null);
         var list = LEDManager.GetList();
         var last = list[list.Count - 1];
         AddControl(last);
         AutoPlayService.Instance.AddLED(last);
     }
 }
Example #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     var form = new EditLEDScreenForm();
     form.BindData(LED.ID);
     if (form.ShowDialog() == DialogResult.OK)
     {
         var model = LEDManager.GetModel(LED.ID);
         BindData(model);
     }
 }