Пример #1
0
 private void Courses_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ShowImageViewModel.SelectedCourse = Courses.SelectedItem.ToString();
     ShowImageViewModel.RefreshImages();
     PortalImages.SelectedItem = ShowImageViewModel.SelectedModel;
     PortalImages.ItemsSource  = ShowImageViewModel.ModelsSource;
 }
Пример #2
0
 public ShowImage(ShowImageViewModel show)
 {
     InitializeComponent();
     ShowImageViewModel        = show;
     DataContext               = ShowImageViewModel;
     PortalImages.ItemsSource  = ShowImageViewModel.ModelsSource.ToList();
     PortalImages.SelectedItem = ShowImageViewModel.SelectedModel;
 }
Пример #3
0
 private void PortalImages_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ShowImageViewModel.SelectedModel = PortalImages.SelectedItem.ToString();
     ShowImageViewModel.CreatePlotModel();
     OxyView.Model = ShowImageViewModel.ImageModel;
 }