Exemplo n.º 1
0
 void InkAnalyzer_ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e)
 {
     // The GetRecognizedString returns null when the ContextNodeCreated event
     // is called, so we need to deal with it later.
     InkWordNode inkWordNode = e.NodeCreated as InkWordNode;
     if (inkWordNode != null)
         uncheckedNewWordNodes.Add(inkWordNode);
 }
Exemplo n.º 2
0
        void InkAnalyzer_ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e)
        {
            // The GetRecognizedString returns null when the ContextNodeCreated event
            // is called, so we need to deal with it later.
            InkWordNode inkWordNode = e.NodeCreated as InkWordNode;

            if (inkWordNode != null)
            {
                uncheckedNewWordNodes.Add(inkWordNode);
            }
        }
Exemplo n.º 3
0
        protected override void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e)
        {
            Debug.WriteLine("Holy molly! {0}", e.NodeCreated);
            InkDrawingNode n = e.NodeCreated as InkDrawingNode;

            if (n != null)
            {
                Debug.WriteLine("Yeah!");
                foreach (Stroke x in n.Strokes)
                {
                    Debug.WriteLine("Uhhhhh {0}", x);
                    analyzer.RemoveStroke(x);
                    x.StylusPoints = InkUtils.xkcd(x.StylusPoints);
                }
            }
        }
Exemplo n.º 4
0
 protected abstract void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e);
Exemplo n.º 5
0
 protected abstract void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e);
Exemplo n.º 6
0
 protected override void ContextNodeCreated(object sender, ContextNodeCreatedEventArgs e)
 {
     Debug.WriteLine("Holy molly! {0}", e.NodeCreated);
     InkDrawingNode n = e.NodeCreated as InkDrawingNode;
     if (n != null)
     {
         Debug.WriteLine("Yeah!");
         foreach (Stroke x in n.Strokes)
         {
             Debug.WriteLine("Uhhhhh {0}", x);
             analyzer.RemoveStroke(x);
             x.StylusPoints = InkUtils.xkcd(x.StylusPoints);
         }
     }
 }