private void btn_Delete_Click_1(object sender, RoutedEventArgs e)
 {
     if (grd_Sector.SelectedItem != null)
     {
         sector = (Sector)grd_Sector.SelectedItem;
         MessageBoxResult result = MessageBox.Show("هل انت متأكد من حذف " + sector.Name, "حذف القطاع", MessageBoxButton.YesNo, MessageBoxImage.Question);
         if (result == MessageBoxResult.Yes)
         {
             sectorDomain.Delete(sector);
             if (sectorDomain.ActionState.Status == Common.Enums.ActionStatusEnum.NoError)
             {
                 MessageBox.Show("تم الحذف بنجاح", "حذف القطاع", MessageBoxButton.OK, MessageBoxImage.Information);
                 sectorList.Remove(sector);
                 grd_Sector.ItemsSource = null;
                 grd_Sector.ItemsSource = sectorList;
                 Clear();
             }
             else
             {
                 MessageBox.Show(sectorDomain.ActionState.Result, "حذف القطاع", MessageBoxButton.OK, MessageBoxImage.Error);
                 Clear();
             }
         }
     }
 }
        private void grd_Sector_MouseDoubleClick_1(object sender, MouseButtonEventArgs e)
        {
            if (grd_Sector.SelectedItem != null)
            {
                sector = (Sector)grd_Sector.SelectedItem;
                txt_Description.Text = sector.Description;
                txt_DescriptionEnglish.Text = sector.DescriptionEnglish;
                txt_NameEnglish.Text = sector.NameEnglish;
                txt_Name.Text = sector.Name;

            }
        }
 private void Clear()
 {
     txt_Description.Text = string.Empty;
     txt_DescriptionEnglish.Text = string.Empty;
     txt_NameEnglish.Text = string.Empty;
     txt_Err_Description.Text = string.Empty;
     txt_Err_DescriptionEnglish.Text = string.Empty;
     txt_Err_NameEnglish.Text = string.Empty;
     txt_Err_Name.Text = string.Empty;
     txt_Name.Text = string.Empty;
     sector = new Sector();
 }