Esempio n. 1
0
 public MainPage()
 {
     this.InitializeComponent();
     this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;
     RecognizerViewModel      = new RecognizerSpeechViewModel(dispatcher);
     HaveTempFile();
     page     = (MainPage)this.mainPage;
     MainView = new MainViewModel();
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     recognizerSpeechViewModel = e.Parameter as RecognizerSpeechViewModel;
     this.RecentView           = new RecentFilesViewModel(recognizerSpeechViewModel);
 }
Esempio n. 3
0
 public MainViewModel()
 {
     RecognizerViewModel = new RecognizerSpeechViewModel(dispatcher);
 }
Esempio n. 4
0
 public RecentFilesViewModel(RecognizerSpeechViewModel recognizerSpeechViewModel)
 {
     recognizerSpeechView = recognizerSpeechViewModel;
     PopulateRecentFiles();
 }