Exemple #1
0
        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;
        }
Exemple #2
0
 public void Delete()
 {
     StyleManager.Remove(this);
     DoneButton();
 }