public MainWindow() { InitializeComponent(); canvasModel = new CanvasModel(); currentMode = new Selection(canvasModel, this); tableData = new ObservableCollection <TableRow>(); Selected = null; }
private void button_Selection_Click(object sender, RoutedEventArgs e) { currentMode = new Selection(canvasModel, this); RefreshCanvas(); }
private void button_Rectangle_Click(object sender, RoutedEventArgs e) { currentMode = new DrawRectangle(canvasModel, this); }
private void button_Polygon_Click(object sender, RoutedEventArgs e) { currentMode = new DrawPolygon(canvasModel, this); }
private void button_Oval_Click(object sender, RoutedEventArgs e) { currentMode = new DrawEllipse(canvasModel, this); }