private void Button_Yes_Click(object sender, RoutedEventArgs e)
 {
     switch (objName)
     {
         case "User":
         {
             using (var data = new DataServiceClient())
             {
                 data.DeleteUser((ViewUser)obj);
             }
         }break;
         case "ObjOfTransact":
         {
             using (var data = new DataServiceClient())
             {
                 data.DeleteObjectOfTransaction((ViewObjOfTransact)obj);
             }
         }break;
         case "Deal":
         {
             using (var data = new DataServiceClient())
             {
                 data.DeleteDeal((ViewDeal)obj);
             }
         }break;
     }
     this.Close();
 }