/// <summary> /// Close application /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void exitToolStripMenuItem_Click(object sender, EventArgs e) { //Ensure disconnection from Spark API ApiFunctions.Disconnect(); //Close main form Close(); }