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