public void Call(object sender, MobileEventArgs mEvent) { if (_history == null) { _history = new History(); } mEvent.ForWhom.Notification(sender, mEvent); _history.RegisterCall(new Calls(sender as MobileAccount, mEvent.ForWhom)); }
public void Notification(object sender, MobileEventArgs e) { var account = sender as MobileAccount; if (e.Operation == MobileOperation.SMS) { IncomingSMS(account, e.Message); } else if (e.Operation == MobileOperation.Call) { IncomingCall(account); } }
public void Call(object sender, MobileEventArgs mEvent) { mEvent.ForWhom.Notification(sender, mEvent); }