Пример #1
0
 public MainWindow(string polygonName, IList <C2DPoint> points)
 {
     InitializeComponent();
     viewModel          = new DrawingCanvasViewModel();
     DataContext        = viewModel;
     viewModel.FileName = polygonName ?? viewModel.FileNamePlaceholder;
     drawPathFromPoints(points);
 }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     viewModel   = new DrawingCanvasViewModel();
     DataContext = viewModel;
 }