Esempio n. 1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            NewPortCommand cmd = new NewPortCommand();
            cmd.EntityId = _currentEntity.EntityId;
            cmd.NumberOfInputs = (int) udInputs.Value;
            cmd.NumberOfBuses = (int) udBuses.Value;
            _ctrl.PostCommand(cmd);

            HideSelector();
        }
Esempio n. 2
0
 public virtual void PostCommandNewPort(MathIdentifier entityId, int inputCount, int busCount)
 {
     NewPortCommand cmd = new NewPortCommand();
     cmd.EntityId = entityId;
     cmd.NumberOfInputs = inputCount;
     cmd.NumberOfBuses = busCount;
     PostCommand(cmd);
 }