void castSpell() { wandHandler.StopTracking(); // TODO: probably need to run this in a separate thread var spell = new IftttStartStopSpell( "bslEohHzR8x_HsJ3vWzxub", "hue_hedwig_on", "hue_spell_off", 5 ); spell.castSpell(); var cloudBit = new Incendio(DEVICE, AUTHORIZATION, VOLTAGE, DURATION, null, null); cloudBit.castSpell(); sound.PlaySync(); Close(); }
private void castSpell() { spellCast = true; wandHandler.StopTracking(); var spell = new IftttStartStopSpell( "bslEohHzR8x_HsJ3vWzxub", "hue_arania_exumai_on", "hue_spell_off", 5 ); spell.castSpell(); var cloudBit = new Incendio(DEVICE, AUTHORIZATION, VOLTAGE, DURATION, null, null); cloudBit.castSpell(); axWindowsMediaPlayer1.Visible = true; //playList.appendItem(postMovie); pbStrokes.Visible = false; shownEnd = true; axWindowsMediaPlayer1.currentMedia = postMovie; }