public Form1() { InitializeComponent(); DeviceFoundDelegate = new DeviceFound(deviceFound); NewSMSDelegate = new NewSMS(newSMS); PhoneStateChangedDelegate = new PhoneStateChanged(phoneStateChanged); }
private void SetPhoneStatus(PhoneStatus status, string otherUserId) { if (PhoneState.Status != status || PhoneState.OtherUserId != otherUserId) { PhoneState = new PhoneState { OtherUserId = otherUserId, Status = status }; PhoneStateChanged?.Invoke(PhoneState); } }
private static extern Int32 init(DeviceFound deviceFound, NewSMS newSMS, PhoneStateChanged phoneStateChanged, IntPtr param);