/// <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();
        }
Exemple #2
0
 private void ConnectDisconnectButtonClick(object sender, RoutedEventArgs e)
 {
     if (Orchestra.IsConnected)
     {
         Orchestra.Disconnect();
     }
     else
     {
         Orchestra.Connect();
     }
 }