示例#1
0
        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;
        }
示例#2
0
 public frmCustom(ColorController con)
 {
     _recipe = con.Recipe;
     InitializeComponent();
 }