private void frmMain_Load(object sender, EventArgs e) { _con = new ColorController(); var num = _con.DeviceCount; if (num <= 0) { MessageBox.Show("No Blync devices detected.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); } else { _con.Off(); lblStatus.Text += " " + num.ToString(); } timerColor.Interval = 1000; tbInterval.Value = timerColor.Interval; }
public frmCustom(ColorController con) { _recipe = con.Recipe; InitializeComponent(); }