public Form_ActionPicker(IWinhuePluginHost host, Body action, List <string> listlights) { InitializeComponent(); _host = host; _action = action; _listselectedLights = listlights; }
public Form_ActionPicker(IWinhuePluginHost host) { InitializeComponent(); _host = host; _action = null; _listselectedLights = null; }
public Form_AlertCreator(IWinhuePluginHost host) { InitializeComponent(); _host = host; fap = new Form_ActionPicker(_host); _oldName = null; }
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; }
public Form_CpuTempMonitorSettings(CpuTemp temp, IWinhuePluginHost host) { InitializeComponent(); Temp = temp; Host = host; temp.OnTempUpdated += temp_OnTempUpdated; Temp.Start(); if (Dispatcher.CheckAccess()) { cbListCpuSensors.Items.Clear(); foreach (ISensor sensor in temp.cpuSensors) { cbListCpuSensors.Items.Add(sensor); if (sensor.Name.Contains("Package")) { cbListCpuSensors.SelectedIndex = cbListCpuSensors.Items.Count - 1; } } } else { Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => { cbListCpuSensors.Items.Clear(); foreach (ISensor sensor in temp.cpuSensors) { cbListCpuSensors.Items.Add(sensor); if (sensor.Name.Contains("Package")) { cbListCpuSensors.SelectedIndex = cbListCpuSensors.Items.Count - 1; } } })); } }
public RssFeedMonitorSettingsForm(IWinhuePluginHost host) { InitializeComponent(); _host = host; }