private void OnShowChanges(object sender, RoutedEventArgs e)
 {
     IEntityChangeSet changeSet = this.ItemSource.CreateChangeSet(EntityState.Modified | EntityState.Deleted | EntityState.Added);
     if (null != changeSet)
     {
         ChangeSetViewer wnd = new ChangeSetViewer(changeSet);
         wnd.ShowDialog();
     }
 }
 private void OnShowChanges(object sender, RoutedEventArgs e)
 {
     IEntityChangeSet changeSet = this.Table.CreateChangeSet();
     if (null != changeSet)
     {
         ChangeSetViewer wnd = new ChangeSetViewer(changeSet);
         wnd.ShowDialog();
     }
 }