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
 public void EndAdd()
 {
     AddElementCanvas.EndAdd();
     AddLineCanvas.EndAdd();
 }