Example #1
0
 public MainWindow()
 {
     InitializeComponent();
     Instance = this;
     MyCanvas.Children.Add(NotArtist.FigureHost);
     ButtonsGenerations.Generation();
     NotArtist.AddCondition();
 }
Example #2
0
        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);
            }
        }