public void PhoneEventsInit(IPhone phone) { phone.IncomingCall += (sender, args) => { State = PortState.Call; phone.Connection = args; }; phone.OutgoingCall += (sender, args) => { State = PortState.Call; Call?.Invoke(this, args); }; phone.Answer += (sender, args) => { Answer?.Invoke(this, args); }; phone.Drop += (sender, args) => { State = PortState.Busy; Drop?.Invoke(this, args); }; this.IncomingCall += (sender, args) => { phone.GetIncomingCall(args); }; }