private void ButtonAdd_Click(object sender, RoutedEventArgs e) { UserPreferences dlg = new Common.UserPreferences(null); bool? result = dlg.ShowDialog(); if (result.HasValue && result.Value == true) { this.m_UserPreferenceList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAllUserPreferences(); this.NotifyPropertyChanged("UserPreferenceList"); } }
private void ListViewUserPreferences_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListViewUserPreferences.SelectedItem != null) { YellowstonePathology.Business.User.UserPreference userPreference = (YellowstonePathology.Business.User.UserPreference) this.ListViewUserPreferences.SelectedItem; UserPreferences dlg = new Common.UserPreferences(userPreference); dlg.ShowDialog(); this.m_UserPreferenceList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetAllUserPreferences(); this.NotifyPropertyChanged("UserPreferenceList"); } }