public void RemoveItem(InputProcedural item) { item.ValueChanged -= OnValueChanged; item.ConnectedNode = null; inputs.Remove(item); OnInputPositionsChanged(); OnValueChanged(); }
public void MoveDown(InputProcedural input) { int index = inputs.IndexOf(input); if (index < inputs.Count - 1) { inputs[index] = inputs[index + 1]; inputs[index + 1] = input; OnInputPositionsChanged(); OnValueChanged(); } }
public void MoveUp(InputProcedural input) { int index = inputs.IndexOf(input); if (index > 0) { inputs[index] = inputs[index - 1]; inputs[index - 1] = input; OnInputPositionsChanged(); OnValueChanged(); } }
public void AddItem(INodeOutput node = null) { var newInput = new InputProcedural() { Title = this.Title }; newInput.ConnectedNode = node; newInput.ValueChanged += OnValueChanged; inputs.Add(newInput); OnInputPositionsChanged(); OnValueChanged(); }