Exemple #1
0
 void circleDetector_OnCircle(object sender, CircleEventArgs e)
 {
     if (e.Confidence)
     {
         Update(new Point3D(), "circle");
         flowRouter.ActiveListener = pushDetector;
     }
 }
        void circleDectector_OnCircle(object sender, CircleEventArgs e)
        {
            circleDectector.Reset();

            if (debug == true)
            {
                _print     = true;
                debug_text = "Circle detected";
            }
        }
Exemple #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="circle"></param>
        /// <returns></returns>
        /// <remarks>This function must be called after the ContactTable and WLConnections are created.</remarks>
        private bool FireJoinCircleInvitationReceivedEvents(Contact circle)
        {
            lock (PendingAcceptionCircleList)
            {
                PendingAcceptionCircleList[circle.AddressBookId] = circle;
            }

            CircleEventArgs joinArgs = new CircleEventArgs(circle);
            NSMessageHandler.ContactService.OnJoinCircleInvitationReceived(joinArgs);
            return true;
        }
Exemple #4
0
 void ContactService_CircleCreated(object sender, CircleEventArgs e)
 {
     RefreshCircleList(sender, e);
 }
Exemple #5
0
 void ContactService_JoinCircleInvitationReceived(object sender, CircleEventArgs e)
 {
     messenger.ContactService.AcceptCircleInvitation(e.Circle);
 }
Exemple #6
0
 void ContactService_JoinedCircle(object sender, CircleEventArgs e)
 {
     RefreshCircleList(sender, e);
     messenger.ContactService.ExitCircle(e.Circle); //Demostrate how to leave a circle.
 }
Exemple #7
0
 void ContactService_ExitCircle(object sender, CircleEventArgs e)
 {
     RefreshCircleList(sender, e);
 }
Exemple #8
0
        void ContactService_TestingCircleAdded(object sender, CircleEventArgs e)
        {
            //Circle created, then show you how to block.
            ////if (!e.Circle.OnBlockedList)
            ////{
            ////    messenger.ContactService.BlockCircle(e.Circle);
            ////    e.Circle.ContactBlocked += new EventHandler<EventArgs>(Circle_ContactBlocked);
            ////    Trace.WriteLine("Circle blocked: " + e.Circle.ToString());
            ////}

            ////Trace.WriteLine("Circle created: " + e.Circle.ToString());
        }
 private void Circles_CircleAdded(object sender, CircleEventArgs e)
 {
     OnShapeAdded(e.Entity);
 }
Exemple #10
0
        internal void OnJoinedCircleCompleted(CircleEventArgs e)
        {
            Trace.WriteLineIf(Settings.TraceSwitch.TraceVerbose, "Circle invitation accepted: " + e.Circle.ToString());

            if (JoinedCircleCompleted != null)
                JoinedCircleCompleted(this, e);
        }
Exemple #11
0
 internal void OnJoinCircleInvitationReceived(CircleEventArgs e)
 {
     if (JoinCircleInvitationReceived != null)
         JoinCircleInvitationReceived(this, e);
 }
Exemple #12
0
        internal void OnExitCircleCompleted(CircleEventArgs e)
        {
            Trace.WriteLineIf(Settings.TraceSwitch.TraceVerbose, "Exit circle completed: " + e.Circle.ToString());

            if (ExitCircleCompleted != null)
                ExitCircleCompleted(this, e);
        }
Exemple #13
0
 internal void OnCreateCircleCompleted(CircleEventArgs e)
 {
     if (CreateCircleCompleted != null)
         CreateCircleCompleted(this, e);
 }
 public CircleDetectedEventArgs(CircleEventArgs e)
     : this(new PointF(e.CircleCenter.X, e.CircleCenter.Y), e.CircleRadius, e.Confident, e.Value)
 {
 }
 void circleDetector_Circle(object sender, CircleEventArgs e)
 {
     CircleDetected(sender, new CircleDetectedEventArgs(e));
 }