Esempio n. 1
0
 private static void SetAppBar(IViewModelCore viewModelCore)
 {
     if (ShellView != null)
     {
         var shellViewModel = ShellView.DataContext as IShellViewModel;
         if (shellViewModel != null)
         {
             shellViewModel.RefreshAppBar(viewModelCore);
         }
     }
 }
Esempio n. 2
0
 public void RefreshAppBar(IViewModelCore viewModelCore)
 {
     SetAppBarState(viewModelCore.ShowAppBar);
     SetAppBarSortListButtonsState(viewModelCore.ShowSortListButton);
     SetAppBarCancelButtonsState(viewModelCore.ShowCancelButton);
     SetAppBarApproveButtonsState(viewModelCore.ShowApproveButton);
     SetAppBarAdjustButtonsState(viewModelCore.ShowAdjustButton);
     SetAppBarRejectButtonsState(viewModelCore.ShowRejectButton);
     SetAppBarUndoButtonsState(viewModelCore.ShowUndoButton);
     SetAppBarAddNotesButtonsState(viewModelCore.ShowAddNotesButton);
     SetAppBarDetailsButtonsState(viewModelCore.ShowDetailsButton);
     SetAppBarPrivacyPolicyButtonsState(viewModelCore.ShowPrivacyPolicyButton);
     SetAppBarSelectAllButtonsState(viewModelCore.ShowSelectAllButton);
     SetAppBarDocumentsButtonsState(viewModelCore.ShowDocumentsButton);
     SetAppBarClearButtonsState(viewModelCore.ShowClearButton);
     SetAppBarExpandButtonsState(viewModelCore.ShowExpandButton);
 }