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(); }
private void OnAddLineCompeledAction(_Control control) { DesginCanvas.AddNewControl(control); }
public void Delete() { DesginCanvas.Delete(); }
private void OnAddElementCompletedAction(_Control control) { DesginCanvas.AddNewControl(control); }
public void SetZIndex(LayoutType type) { DesginCanvas.SetZIndex(type); }