示例#1
0
 public override void FillWithValueOf(EFDataUnit dataUnit)
 {
     var du = dataUnit as EFDataUnitDate;
     if (du != null) DateValue = du.DateValue;
     else
     {
         throw new InvalidCastException("current dataunit is not a EFDataUnitDate");
     }
 }
示例#2
0
 public override void FillWithValueOf(EFDataUnit dataUnit)
 {
     var du = dataUnit as EFDataUnitCombo;
     if (du != null) SelectedValue = du.SelectedValue;
     else
     {
         throw new InvalidCastException("current dataunit is not a EFDataUnitCombo");
     }
 }
示例#3
0
 public override void FillWithValueOf(EFDataUnit dataUnit)
 {
     var du = dataUnit as EFDataUnitAmount;
     if (du != null)
     {
         Amount = du.Amount;
         Ccy = du.Ccy;
     }
     else
     {
         throw new InvalidCastException("current dataunit is not a EFDataUnitAmount");
     }
 }
示例#4
0
 public abstract void FillWithValueOf(EFDataUnit dataUnit);