public void Add(Point p)
 {
     using (var ecb = new AddCommandButton { location = p })
     {
         if (ecb.ShowDialog(this) == DialogResult.OK)
         {
             _editing = ecb.CMD;
             Constrain(_editing);
         }
     }
     Invalidate();
 }
Esempio n. 2
0
 public void Add(Point p)
 {
     using (var ecb = new AddCommandButton {
         location = p
     })
     {
         if (ecb.ShowDialog(this) == DialogResult.OK)
         {
             _editing = ecb.CMD;
             Constrain(_editing);
         }
     }
     Invalidate();
 }