public void NewChannel()
 {
     ChannelIntroViewModel.CheckIntroEnabledAsync(
         enabled => BeginOnUIThread(() =>
     {
         if (enabled)
         {
             StateService.RemoveBackEntry = true;
             NavigationService.UriFor <ChannelIntroViewModel>().Navigate();
         }
         else
         {
             StateService.RemoveBackEntry = true;
             NavigationService.UriFor <CreateChannelStep1ViewModel>().Navigate();
         }
     }));
 }
示例#2
0
 public void NewChannel()
 {
     CacheService.CheckDisabledFeature(Constants.FeatureBroadcastCreate,
                                       () => ChannelIntroViewModel.CheckIntroEnabledAsync(
                                           enabled => BeginOnUIThread(() =>
     {
         if (enabled)
         {
             StateService.RemoveBackEntry = true;
             NavigationService.UriFor <ChannelIntroViewModel>().Navigate();
         }
         else
         {
             StateService.RemoveBackEntry = true;
             NavigationService.UriFor <CreateChannelStep1ViewModel>().Navigate();
         }
     })),
                                       disabledFeature =>
     {
         Execute.BeginOnUIThread(() => MessageBox.Show(disabledFeature.Description.ToString(), AppResources.AppName, MessageBoxButton.OK));
     });
 }