示例#1
0
        private void Button224_authtokengenerate_Click(object sender, EventArgs e)
        {
            string token = Nanoleaf.GenerateToken(textBox224_location.Text);

            if (token != null)
            {
                textBox221_authtoken.Text = token;
            }
            if (textBox224_location.Text.Length > 0 && textBox224_authtoken.Text.Length > 0 && !textBox224_authtoken.Text.StartsWith("---"))
            {
                devices[3] = new NanoleafDevice(textBox224_location.Text, textBox224_authtoken.Text);
                UpdateEffectList();
            }
        }