Beispiel #1
0
 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();
 }
Beispiel #2
0
 private void OnAddLineCompeledAction(_Control control)
 {
     DesginCanvas.AddNewControl(control);
 }
Beispiel #3
0
 public void Delete()
 {
     DesginCanvas.Delete();
 }
Beispiel #4
0
 private void OnAddElementCompletedAction(_Control control)
 {
     DesginCanvas.AddNewControl(control);
 }
Beispiel #5
0
 public void SetZIndex(LayoutType type)
 {
     DesginCanvas.SetZIndex(type);
 }