Beispiel #1
0
 void Content_StateChanged(object sender, ShareableContentStateChangedEventArgs e)
 {
     // Lets update content bin. Some content may have moved to Online state or could be removed.
     // This call can be optimized to only happen if e.NewState is ShareableContentState.Online
     // Active or Unusable
     dispatcher.BeginInvoke(new Action(UpdateContentBin));
 }
Beispiel #2
0
 void pptContent_StateChanged(object sender, ShareableContentStateChangedEventArgs e)
 {
     if ((e.OldState == ShareableContentState.Connecting) && (e.NewState == ShareableContentState.Online))
     {
         // Lets make the content visible.
         pptContent.Present();
     }
 }