private void DoneBtn_Click(object sender, RoutedEventArgs e)
 {
     if (SavingLoading != null)
         SavingLoading.Visibility = System.Windows.Visibility.Visible;
     if (DoneBtn != null)
         DoneBtn.IsEnabled = false;
     SmartMap_DomainContext context = new SmartMap_DomainContext();
     if (_grouping == null)
     {
         List<int> list = new List<int>();
         foreach (int productMapId in GetSelectedProductsIds())
             list.Add(productMapId);
         context.PakKonAllProductProvinceGroups(list, ProductProvinceGroup_Deleted, null);
     }
     else
     {
         if (_grouping.Name != GroupingNameTbx.Text)
         {
             _grouping.Name = GroupingNameTbx.Text;
             context.Load<ProvinceGrouping>(context.GetProvinceGroupingByIdQuery(_grouping.ID), ChangedNameGrouping_Loaded, context);
         }
         else
         {
             context.PakKonAllProductProvinceGrouping(_grouping.ID, ProductProvinceGroup_Deleted, null);
         }
     }
 }