/// <summary> /// Gets called when the App suspends /// </summary> private async void OnAppSuspending(object sender, Windows.ApplicationModel.SuspendingEventArgs e) { Orchestra.Disconnect(); await MusicLibrary.Save(); MusicLibrary.Close(); }
private void ConnectDisconnectButtonClick(object sender, RoutedEventArgs e) { if (Orchestra.IsConnected) { Orchestra.Disconnect(); } else { Orchestra.Connect(); } }