Example #1
0
 private void cbitHexagon_Selected(object sender, RoutedEventArgs e)
 {
     factory = new FactoryHexagon();
     FactorySelected?.Invoke(this, new EventArgs());
 }
Example #2
0
 private void cbitOval_Selected(object sender, RoutedEventArgs e)
 {
     factory = new FactoryEllipse();
     FactorySelected?.Invoke(this, new EventArgs());
 }
Example #3
0
 private void cbitTriangle_Selected(object sender, RoutedEventArgs e)
 {
     factory = new FactoryTriangle();
     FactorySelected?.Invoke(this, new EventArgs());
 }
Example #4
0
        // Choose a type of a figure

        private void cbitCursor_Selected(object sender, RoutedEventArgs e)
        {
            factory = null;
            FactorySelected?.Invoke(this, new EventArgs());
        }