Ejemplo n.º 1
0
 public Form_AlertCreator(Alert alert)
 {
     InitializeComponent();
     tbDescription.Text   = alert.Description;
     tbName.Text          = alert.Name;
     tbUrl.Text           = alert.Url;
     chbEnabled.IsChecked = alert.Enabled;
     foreach (Criteria c in alert.Criterias)
     {
         lbConditions.Items.Add(c);
     }
     fap = new Form_ActionPicker(alert.Action, alert.lights);
     chbEnabled.IsChecked = alert.Enabled;
     _oldName             = alert.Name;
 }
Ejemplo n.º 2
0
 public Form_AlertCreator()
 {
     InitializeComponent();
     fap      = new Form_ActionPicker();
     _oldName = null;
 }