Exemplo n.º 1
0
 public override string ToString()
 {
     if (null != AgeUnit)
     {
         return(age.ToString() + AgeUnit.ToString().Substring(0, 1));
     }
     return(string.Empty);
 }
Exemplo n.º 2
0
 /// <summary>
 /// unit to local language
 /// </summary>
 /// <returns></returns>
 public string AgeUnitToL10nString()
 {
     GlobalDefinition.LoggerWrapper.LogTraceInfo("public string AgeUnitToL10nString() start");
     if (null != AgeUnit)
     {
         return(GlobalDefinition.ToLocalLanguge("UID_PA_AgeUnit_" + AgeUnit.ToString()));
     }
     GlobalDefinition.LoggerWrapper.LogTraceInfo("public string AgeUnitToL10nString() end");
     return(string.Empty);
 }
Exemplo n.º 3
0
 public Age(int old, AgeUnit unit)
 {
     this._value = old;
     this._unit = unit;
 }
Exemplo n.º 4
0
 public Age()
 {
     this._unit = AgeUnit.year;
 }
Exemplo n.º 5
0
 public age(AgeUnit unit, int value)
 {
     this.unit  = unit;
     this.value = value;
 }
Exemplo n.º 6
0
 public AgeWithUnit(int age, AgeUnit ageUnit)
 {
     this.Age     = age;
     this.AgeUnit = ageUnit;
 }
Exemplo n.º 7
0
 public Age(int value, AgeUnit unit)
 {
     Value = value;
     Unit  = unit;
 }
Exemplo n.º 8
0
 public age(AgeUnit unit)
 {
     this.unit = unit;
 }
Exemplo n.º 9
0
 public Age(int old, AgeUnit unit)
 {
     this._value = old;
     this._unit  = unit;
 }
Exemplo n.º 10
0
 public Age()
 {
     this._unit = AgeUnit.year;
 }
Exemplo n.º 11
0
Arquivo: Age.cs Projeto: Wooyme/HIS-1
 /// <summary>
 /// 根据年龄与单位获取年龄实例
 /// </summary>
 /// <param name="age"></param>
 /// <param name="ageuint"></param>
 public Age(int age, AgeUnit ageuint)
 {
     AgeNum = age;
     Unit   = ageuint;
 }
Exemplo n.º 12
0
 internal AgeResolution(ResolutionKind resolutionKind, AgeUnit unit, double value) : base(resolutionKind)
 {
     Unit           = unit;
     Value          = value;
     ResolutionKind = resolutionKind;
 }
Exemplo n.º 13
0
 internal AgeResolution(AgeUnit unit, double value)
 {
     Unit           = unit;
     Value          = value;
     ResolutionKind = ResolutionKind.Age;
 }