Example #1
0
 public Form_AlertCreator(IWinhuePluginHost host)
 {
     InitializeComponent();
     _host    = host;
     fap      = new Form_ActionPicker(_host);
     _oldName = null;
 }
Example #2
0
 public Form_AlertCreator(IWinhuePluginHost host, Alert alert)
 {
     InitializeComponent();
     _host = host;
     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(_host, alert.Action, alert.lights);
     chbEnabled.IsChecked = alert.Enabled;
     _oldName             = alert.Name;
 }