private void NewVisitorCard_Click(object sender, RoutedEventArgs e) { var dialog = new EditVisitorCardView(0); dialog.Show(); }
private void OnEdit() { var selected = SelectedCard; if ( selected == null ) { ShowDialog( "You must select a visitor card in order to edit it" ); return; } var id = selected.ID; var dialog = new EditVisitorCardView( id ); dialog.Show(); }