public Drawing(Canvas canvas) { Check.NotNull(canvas, "canvas"); ActionManager = new ActionManager(); StyleManager = new StyleManager(this); Figures = new RootFigureList(this); OnAttachToCanvas += Drawing_OnAttachToCanvas; OnDetachFromCanvas += Drawing_OnDetachFromCanvas; Canvas = canvas; CoordinateSystem = new CoordinateSystem(this); CoordinateGrid = new CartesianGrid() { Drawing = this, Visible = Settings.Instance.ShowGrid }; Figures.Add(CoordinateGrid); Version = Settings.CurrentDrawingVersion; }
public void Delete() { StyleManager.Remove(this); DoneButton(); }