//HandleCanvasReleased
 public void HandleCanvasReleased(object sender, PointerRoutedEventArgs e)
 {
     _model.ReleasePointer(e.GetCurrentPoint(_canvas).Position.X, e.GetCurrentPoint(_canvas).Position.Y);
     _rectangle.IsEnabled = true;
     _line.IsEnabled      = true;
     _hexagon.IsEnabled   = true;
 }
Example #2
0
 //HandleCanvasReleased
 public void HandleCanvasReleased(object sender, MouseEventArgs e)
 {
     _model.ReleasePointer(e.X, e.Y);
     _rectangle.Enabled = true;
     _line.Enabled      = true;
     _hexagon.Enabled   = true;
 }
Example #3
0
 //pointer released
 public void HandleCanvasReleased(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     _model.ReleasePointer(e.Location.X, e.Location.Y);
 }
        /// <summary>   Handles the canvas released. </summary>
        ///
        /// <param name="sender">   Source of the event. </param>
        /// <param name="e">        Pointer routed event information. </param>
        ///
        /// ### <remarks>   Chen-Tai,Peng, 12/12/2018. </remarks>

        private void HandleCanvasReleased(object sender, PointerRoutedEventArgs e)
        {
            _model.ReleasePointer(e.GetCurrentPoint(_canvas).Position.X, e.GetCurrentPoint(_canvas).Position.Y);
        }