private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     OnCanceling();
     if (_dialogResult == true)
     {
         if (ProductBrandDataForm != null)
         {
             RaiseCanExecuteChanged();
             NavStateTrue();
             ProductBrandDataForm.CancelEdit();
             ProductBrandDataForm.BeginEdit();
         }
     }
 }
 private void ProductBrandDataGrid_AddingNewDataItem(object sender, GridViewAddingNewEventArgs e)
 {
     ProductBrandDataForm.AddNewItem();
 }
 private void PreviousButton_Click(object sender, RoutedEventArgs e)
 {
     ProductBrandDataForm.MoveCurrentToPrevious();
 }
 private void NextButton_Click(object sender, RoutedEventArgs e)
 {
     ProductBrandDataForm.MoveCurrentToNext();
 }