示例#1
0
文件: Port.cs 项目: GrinevichAS/Task3
 public Port(int id, string number)
 {
     Number         = number;
     Id             = id;
     PortStatus     = StatusOfPort.NotConnected;
     ContractStatus = StatusOfContract.NotContracted;
 }
示例#2
0
文件: Port.cs 项目: GrinevichAS/Task3
 public void ChangeStatusOfContract()
 {
     ContractStatus = ContractStatus != StatusOfContract.NotContracted ? StatusOfContract.NotContracted : StatusOfContract.Contracted;
 }