예제 #1
0
        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));
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public void Call(object sender, MobileEventArgs mEvent)
 {
     mEvent.ForWhom.Notification(sender, mEvent);
 }