public void NewCanvasTest1() { shapeBUS = new ShapeBUS(); shapeBUS.AddPoint(new Point(0, 0)); shapeBUS.AddPoint(new Point(5, 8)); shapeBUS.AddPoint(new Point(5, 4)); shapeBUS.AddPoint(new Point(0, 0)); shapeBUS.CreatePolygon(); Color color = Color.FromRgb(255, 255, 255); shapeBUS.FillShape(color); shapeBUS.NewCanvas(); }
private void NewMenuItem_Click(object sender, ExecutedRoutedEventArgs e) { bus.NewCanvas(); }