private void Edit_Click(object sender, RoutedEventArgs e) { Premises premises = premisesList.SelectedItem as Premises; premisesAdd p = new premisesAdd(premises); p.ShowDialog(); }
private void addPremises(object sender, RoutedEventArgs e) { premisesAdd premises = new premisesAdd(new Premises()); premises.ShowDialog(); }