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