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; }
private void frmMain_FormClosing(object sender, FormClosingEventArgs e) => _con.Off();//MessageBox.Show("You will have to use the Blync application to re-sync this with Lync");