truck.cs
来自「微软的行业应用解决方案实例!非常优秀的Windows Mobile开发案例」· CS 代码 · 共 94 行
CS
94 行
using System;
using System.Collections.Generic;
using System.Text;
namespace HardwareDistributor.Business
{
public class Truck
{
private int _truckId;
private string _licenseStateProvince;
private string _licenseNumber;
private int _routeId;
public Truck() { }
public Truck(int truckId, string truckLicenseStateProvince, string truckLicenseNumber, int routeId)
{
this._truckId = truckId;
this._licenseStateProvince = truckLicenseStateProvince;
this._licenseNumber = truckLicenseNumber;
this._routeId = routeId;
}
/// <summary>
/// Unique Truck Id
/// </summary>
public int TruckId
{
get
{
return _truckId;
}
set
{
_truckId = value;
}
}
/// <summary>
/// State or Province found on
/// Truck's license plate
/// </summary>
public string LicenseStateProvince
{
get
{
return _licenseStateProvince;
}
set
{
_licenseStateProvince = value;
}
}
/// <summary>
/// Truck's license plate number
/// </summary>
public string LicenseNumber
{
get
{
return _licenseNumber;
}
set
{
_licenseNumber = value;
}
}
/// <summary>
/// Unique Route Id that this
/// truck belongs to
/// </summary>
public int RouteId
{
get
{
return _routeId;
}
set
{
_routeId = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?