/// <summary> /// Receives the point list from the input device. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="Kanji.DesktopApp.LogicLayer.MouseInputEventArgs"/> instance containing the event data.</param> public void ReceivePointList(object sender, IMouseInputEventArgs e) { // Create stroke from ActivePoints // Store Stroke in stroke list // take current stroke list and try to build radicals in different variants // store radicals // take current radicals and try to build character from them // store characters // Logics.Character c = new Logics.Character(((Logics.MouseInputEventArgs)e).ActivePoints); // c.AppController = this; // Thread t = new Thread(Logics.Character.CreateFromPointList); // t.Start(c); // Logics.Stroke s = new Logics.Stroke(((Logics.MouseInputEventArgs)e).ActivePoints); // Logics.Character.CreateFromPointList(c); //why giving anything back to the inputarea??? View.ReceivePointList((IStroke)s, (IBoundingBox)bb); //giving it to the "View" is correct, but the inputarea is not the "View"! }
/// <summary> /// Receives the point list from the input device. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="Kanji.DesktopApp.LogicLayer.MouseInputEventArgs"/> instance containing the event data.</param> public void ReceivePointList(object sender, IMouseInputEventArgs e) { // Create stroke from ActivePoints // Store Stroke in stroke list // take current stroke list and try to build radicals in different variants // store radicals // take current radicals and try to build character from them // store characters // Logics.Character c = new Logics.Character(((Logics.MouseInputEventArgs)e).ActivePoints); // c.AppController = this; // Thread t = new Thread(Logics.Character.CreateFromPointList); // t.Start(c); // Logics.Stroke s = new Logics.Stroke(((Logics.MouseInputEventArgs)e).ActivePoints); // Logics.Character.CreateFromPointList(c); //why giving anything back to the inputarea??? View.ReceivePointList((IStroke)s, (IBoundingBox)bb); //giving it to the "View" is correct, but the inputarea is not the "View"! }