private void SetEnd(object sender, MouseEventArgs e) { Clear(); var p = e.GetPosition(sender as Canvas); if (navigator.SetEnd(p.X, p.Y)) { end.Drawing(p); } else { MessageBox.Show("point can't reach"); } }
public void Drawing(Point center) { f.Drawing(center); c.Drawing(center); }