public void BeginAdd(Type controltype) { if (typeof(_Line).IsAssignableFrom(controltype)) { AddLineCanvas.BeginAdd(new _Line()); } else { AddElementCanvas.BeginAdd(Activator.CreateInstance(controltype, null) as _Control); } DesginCanvas.CleanSelection(); }
public void EndAdd() { AddElementCanvas.EndAdd(); AddLineCanvas.EndAdd(); }