Exemplo n.º 1
0
 public Port(int id, string number)
 {
     Number         = number;
     Id             = id;
     PortStatus     = StatusOfPort.NotConnected;
     ContractStatus = StatusOfContract.NotContracted;
 }
Exemplo n.º 2
0
 public void ChangeStatusOfContract()
 {
     ContractStatus = ContractStatus != StatusOfContract.NotContracted ? StatusOfContract.NotContracted : StatusOfContract.Contracted;
 }