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