public void StartDrawing(DrawingItem obj) { nStep = 0; curDrawing = obj.Clone(); if (formHS != null) { curDrawing.ConvertToScreen(formHS.Location); } curDrawing.StartDesign(); saveTransform(); sHelp = curDrawing.Help(); this.Invalidate(); this.Capture = true; }
public void SetDefaultDrawing(DrawingItem item) { Type t = item.GetType(); DrawingItem d = (DrawingItem)item.Clone(); if (_defaultObjects.ContainsKey(t)) { _defaultObjects[t] = d; } else { _defaultObjects.Add(t, d); } updateFile(); }