private static void SetAppBar(IViewModelCore viewModelCore) { if (ShellView != null) { var shellViewModel = ShellView.DataContext as IShellViewModel; if (shellViewModel != null) { shellViewModel.RefreshAppBar(viewModelCore); } } }
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); }