private void AnalysisHistoryButton_Click(object sender, RoutedEventArgs e) { var analysisProvider = new AnalysisProvider(new DatabaseProvider()); IList<Analysis> analyzes = analysisProvider.Load(CurrentState.CurrentPerson); if (analyzes.Count == 0) { MessageBox.Show("История анализов данного пациента пуста!", "Error!"); return; } Switcher.PageSwitcher.Navigate(new AnalysisHistory()); }
private void LoadAllAnalyzes() { var analysisProvider = new AnalysisProvider(new DatabaseProvider()); IList<Analysis> analyzes = analysisProvider.Load(CurrentState.CurrentPerson); AddToDictionary(analyzes); }