public MainWindow() { InitializeComponent(); Instance = this; MyCanvas.Children.Add(NotArtist.FigureHost); ButtonsGenerations.Generation(); NotArtist.AddCondition(); }
public override void MouseUp(Point aPoint) { NotArtist.Figures.Remove(NotArtist.Figures[NotArtist.Figures.Count - 1]); double i = 0; foreach (Figure figure in NotArtist.Figures) { if (figure.SelectRect != null) { i = figure.PenThikness; ButtonsGenerations.PropertyButtonGeneration(); break; } } var CheckThikness = false; foreach (Figure figure in NotArtist.Figures) { if (figure.Select) { if (i == figure.PenThikness) { CheckThikness = true; } else { CheckThikness = false; break; } } } if (CheckThikness) { ButtonsGenerations.RowThicknessButton(i); } }