private void Consumer_SessionLost(AllJoynSession sender, AllJoynSessionLostEventArgs args)
 {
     UpdateStatusAsync(string.Format("AllJoyn session with the producer lost due to {0}.", args.Reason.ToString()), NotifyType.StatusMessage);
     ConsumerOptionsVisibility = Visibility.Collapsed;
     DisposeConsumer();
 }
 private void Consumer_SessionLost(AllJoynSession sender, AllJoynSessionLostEventArgs args)
 {
     UpdateStatusAsync(string.Format("AllJoyn session with the onboardee lost due to {0}.", args.Reason.ToString()), NotifyType.StatusMessage);
     DisposeConsumer();
     ResetControls();
 }