private void OpenMenuItem_Click(object sender, ExecutedRoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == true) { bus.GetShapes(openFileDialog.FileName); } }
public void GetShapesTest1() { shapeBUS = new ShapeBUS(); shapeBUS.AddPoint(new Point(0, 0)); shapeBUS.AddPoint(new Point(5, 5)); shapeBUS.CreateEllipse(); shapeBUS.GetShapes("dd.xaml"); }
public void GetShapesTest1() { shapeBUS = new ShapeBUS(); shapeBUS.AddPoint(new Point(0, 0)); shapeBUS.AddPoint(new Point(5, 5)); shapeBUS.AddPoint(new Point(6, 5)); shapeBUS.AddPoint(new Point(9, 5)); shapeBUS.AddPoint(new Point(15, 5)); shapeBUS.CreatePentagon(); shapeBUS.GetShapes("testing.xaml"); }