Exemple #1
0
        private void editButton_Click(object sender, RoutedEventArgs e)
        {
            Renter toEdit = null;

            if (renterDataGrid.SelectedItem != null)
            {
                toEdit = renterDataGrid.SelectedItem as Renter;
            }

            addEdit = new AddEditRenterView(toEdit, true);

            NavigationService.Navigate(addEdit);
        }
Exemple #2
0
        private void newButton_Click(object sender, RoutedEventArgs e)
        {
            addEdit = new AddEditRenterView();

            NavigationService.Navigate(addEdit);
        }
Exemple #3
0
 private void initializeData()
 {
     addEdit = new AddEditRenterView();
 }