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