Пример #1
0
 public override string ToString()
 {
     return(string.Format("{0,-17} | {1,3} | {2,4} | {3,3} | {4,-10} | {5,8} | {6,-6}", Name, Age, Gold, HP, Weapon.Type.ToString(), DateBorn.ToShortDateString(), Realm.Name));
 }
Пример #2
0
 public void ConvertDate()
 {
     this.DateBornString     = DateBorn.ToShortDateString();
     this.DateRegistryString = DateRegistry.ToShortDateString();
 }