public Line(System.Windows.Point pointOne, System.Windows.Point pointTwo) { this.PointOne = pointOne; this.PointTwo = pointTwo; this.Center = new System.Windows.Point(Math.Abs(PointOne.X - PointTwo.X) / 2, Math.Abs(PointOne.Y - PointTwo.Y) / 2); Thickness = MainWindow.BrushSize.Width; Color = new BaseElements.Color(MainWindow.Color); }
public Rectangle(System.Windows.Point center, System.Windows.Size size, double startAngle = 0, double endAngle = 360, double rotate = 0) { this.Center = center; this.Size = size; this.StartAngle = startAngle; this.EndAngle = endAngle; this.Rotate = rotate; this.Thickness = MainWindow.BrushSize.Width; this.Color = new BaseElements.Color(MainWindow.Color); }
private void ClrPcker_Background_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs <System.Windows.Media.Color?> e) { var color = new DrawMoar.BaseElements.Color(ClrPcker_Background.SelectedColor.Value); Color = color.ToBrush(); }