Exemplo n.º 1
0
 public Form_ActionPicker(IWinhuePluginHost host, Body action, List <string> listlights)
 {
     InitializeComponent();
     _host               = host;
     _action             = action;
     _listselectedLights = listlights;
 }
Exemplo n.º 2
0
 public Form_ActionPicker(IWinhuePluginHost host)
 {
     InitializeComponent();
     _host               = host;
     _action             = null;
     _listselectedLights = null;
 }
Exemplo n.º 3
0
 public Form_AlertCreator(IWinhuePluginHost host)
 {
     InitializeComponent();
     _host    = host;
     fap      = new Form_ActionPicker(_host);
     _oldName = null;
 }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
0
        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;
 }