Beispiel #1
0
 public UniversityEdit()
 {
     InitializeComponent();
     DataContext = new University();
     IsUpdating  = false;
 }
Beispiel #2
0
 public UniversityEdit(University u)
 {
     InitializeComponent();
     DataContext = u;
     IsUpdating  = true;
 }
        private void Universities_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            University ui = (University)((sender as ListView).SelectedItem);

            DataContext = ui;
        }