public static void ClearAllDic()
 {
     try
     {
         DicArea.Clear();
         DicConnection.Clear();
         DicConnectionStatus.Clear();
         DicConnectionType.Clear();
         DicContract.Clear();
         DicContractStatus.Clear();
         DicCustomer.Clear();
         DicCustomerFeedback.Clear();
         DicDetailImportReceipt.Clear();
         DicDevice.Clear();
         DicDeviceType.Clear();
         DicEmployee.Clear();
         DicFee.Clear();
         DicImage.Clear();
         DicImportReceipt.Clear();
         DicManufacturer.Clear();
         DicPayment.Clear();
         DicPaymentFee.Clear();
         DicProvider.Clear();
         DicServiceForm.Clear();
         DicServiceFormStatus.Clear();
         DicServicePack.Clear();
         DicServicePackFee.Clear();
         DicStore.Clear();
     }
     catch (Exception ex) { LogTo.Error(ex.ToString()); }
 }
 public static bool IsExistPaymentFee(PaymentFeeKeys paymentFeeKeys)
 {
     if (DicPaymentFee.ContainsKey(paymentFeeKeys))
     {
         return(true);
     }
     return(false);
 }
 public static PaymentFee GetPaymentFee(PaymentFeeKeys paymentFeeKeys)
 {
     if (DicPaymentFee.ContainsKey(paymentFeeKeys))
     {
         return(DicPaymentFee[paymentFeeKeys].Clone() as PaymentFee);
     }
     LogTo.Error("Not get PaymentFee by paymentFeeKeys = " + paymentFeeKeys);
     return(null);
 }
        internal static void RemoveMemory(PaymentFee objectValue)
        {
            var key = new PaymentFeeKeys
            {
                IdFee     = objectValue.IdFee,
                IdPayment = objectValue.IdPayment
            };

            if (DicPaymentFee.ContainsKey(key))
            {
                DicPaymentFee.Remove(key);
            }
        }
 public static List <PaymentFee> GetAllPaymentFee()
 {
     return(DicPaymentFee.Select(obj => obj.Value.Clone() as PaymentFee).ToList());
 }