コード例 #1
0
 private void txt_RepaymentAmount_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (txt_RepaymentAmount.Text == "")
         {
         }
         else
         {
             try
             {
                 double LoanAmount;
                 double RepaymentAmount;
                 double RemainingAmount;
                 LoanAmount                 = Convert.ToDouble(label_LoanAmount.Text);
                 RepaymentAmount            = Convert.ToDouble(txt_RepaymentAmount.Text);
                 RemainingAmount            = LoanAmount - RepaymentAmount;
                 label_RemainingAmount.Text = RemainingAmount.ToString();
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.ToString());
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (remainingAmount_ != null)
            {
                hash ^= RemainingAmount.GetHashCode();
            }
            if (IsDue != false)
            {
                hash ^= IsDue.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(ResGSvcPreTenderStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.remainingAmount_ != null)
     {
         if (remainingAmount_ == null)
         {
             remainingAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         RemainingAmount.MergeFrom(other.RemainingAmount);
     }
     if (other.IsDue != false)
     {
         IsDue = other.IsDue;
     }
 }