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