private async Task ShowProfiles() { MasterViewModel masterViewModel = this; masterViewModel.Busy(); masterViewModel.HideSideBar(); await Task.Delay(100); int num = await masterViewModel._navigationService.Navigate <ProfilesViewModel>((IMvxBundle)null, new CancellationToken()) ? 1 : 0; masterViewModel.NotBusy(); }
private async Task SelectMenuItem(MenuItem menuItem) { MasterViewModel masterViewModel = this; if (!menuItem.IsEnabled) { return; } masterViewModel.HideSideBar(); if (menuItem.ViewModelType != (Type)null) { masterViewModel.Busy(); await masterViewModel.ShowViewModelFromMaster(menuItem.ViewModelType); masterViewModel.NotBusy(); } else if (menuItem.NavigationUrl != null) { masterViewModel.OpenUrl(menuItem.NavigationUrl); } masterViewModel.SelectedMenuItem = (MenuItem)null; }