private void cbitHexagon_Selected(object sender, RoutedEventArgs e) { factory = new FactoryHexagon(); FactorySelected?.Invoke(this, new EventArgs()); }
private void cbitOval_Selected(object sender, RoutedEventArgs e) { factory = new FactoryEllipse(); FactorySelected?.Invoke(this, new EventArgs()); }
private void cbitTriangle_Selected(object sender, RoutedEventArgs e) { factory = new FactoryTriangle(); FactorySelected?.Invoke(this, new EventArgs()); }
// Choose a type of a figure private void cbitCursor_Selected(object sender, RoutedEventArgs e) { factory = null; FactorySelected?.Invoke(this, new EventArgs()); }