예제 #1
0
파일: Port.cs 프로젝트: BlockiyDmitriy/EPAM
 protected void OnInComingCall(object sender, PhoneNumber phoneNumber)
 {
     InComingCall?.Invoke(this, phoneNumber);
 }
예제 #2
0
파일: Port.cs 프로젝트: BlockiyDmitriy/EPAM
 protected void OnOutGoingCall(object sender, PhoneNumber phoneNumber)
 {
     OutGoingCall?.Invoke(this, phoneNumber);
 }
예제 #3
0
 public Terminal(PhoneNumber number)
 {
     this.Port        = new Port(this);
     this.PhoneNumber = number;
     BindToTerminal();
 }
예제 #4
0
 public void RememberConnection(PhoneNumber from, PhoneNumber to)
 {
     Connection = new Connection(from, to);
 }
예제 #5
0
 public void GetCall(PhoneNumber phoneNumber)
 {
     OnInComingCall(this, phoneNumber);
 }