Ejemplo n.º 1
0
 public override string ToString()
 {
     return
         ("HardwareVendorID = " + HardwareVendorID.ToString() + Environment.NewLine +
          "HardwareType = " + HardwareType.ToString() + Environment.NewLine +
          "HardwareSubType = " + HardwareSubType.ToString() + Environment.NewLine +
          "HardwareMajorVersion = " + HardwareMajorVersion.ToString() + Environment.NewLine +
          "HardwareMinorVersion = " + HardwareMinorVersion.ToString() + Environment.NewLine +
          "HardwareStorageSize = " + HardwareStorageSize.ToString() + Environment.NewLine +
          "HardwareProtocolType = " + HardwareProtocolType.ToString() + Environment.NewLine +
          "SoftwareVendorID = " + SoftwareVendorID.ToString() + Environment.NewLine +
          "SoftwareType = " + SoftwareType.ToString() + Environment.NewLine +
          "SoftwareSubType = " + SoftwareSubType.ToString() + Environment.NewLine +
          "SoftwareMajorVersion = " + SoftwareMajorVersion.ToString() + Environment.NewLine +
          "SoftwareMinorVersion = " + SoftwareMinorVersion.ToString() + Environment.NewLine +
          "SoftwareStorageSize = " + SoftwareStorageSize.ToString() + Environment.NewLine +
          "SoftwareProtocolType = " + SoftwareProtocolType.ToString() + Environment.NewLine +
          "UID = " + BitConverter.ToString(UID) + Environment.NewLine +
          "ProductionBatchNumber = " + BitConverter.ToString(ProductionBatchNumber) + Environment.NewLine +
          "WeekOfProduction = " + WeekOfProduction.ToString() + Environment.NewLine +
          "YearOfProduction = " + YearOfProduction.ToString() + Environment.NewLine);
 }
Ejemplo n.º 2
0
 public string ConsoleView()
 {
     return(string.Format(Resource.ConsoleFormat, " ",
                          Model, Name, Type, Engine, Power, MaxSpeed, Milage, YearOfProduction.ToString("dd.MM.yyyy"), isAvailable));
 }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return(string.Format(Resource.ToStringFormat, Constants.Constants.delimetr, Id,
                          Model, Name, Type, Engine, Power, MaxSpeed, Milage, YearOfProduction.ToString("dd.MM.yyyy"), isAvailable));
 }