コード例 #1
0
        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();
        }
コード例 #2
0
 private void NewMenuItem_Click(object sender, ExecutedRoutedEventArgs e)
 {
     bus.NewCanvas();
 }