public ShapeComponentControl(ShapeComponentData data, IComponentValueStore valueStore) { this.data = data; this.valueStore = valueStore; InitializeComponent(); this.Loaded += ShapeComponentControl_Loaded; this.Unloaded += ShapeComponentControl_Unloaded; textBox.data = data; textBox.valueStore = valueStore; }
public void CreateConnection(ShapeComponentText otherShape) { ShapeComponentData otherData = otherShape.GetData(); Command.ShapeAddConnection.Execute(otherData, this); }