예제 #1
0
        private XElement _WriteControllerReference(ControllerReference controllerReference)
        {
            XElement element = new XElement("ControllerReference",
                                            new XAttribute("controllerId", controllerReference.ControllerId),
                                            new XAttribute("outputIndex", controllerReference.OutputIndex));

            return(element);
        }
예제 #2
0
 private void EntryChangedValue(object sender, EventArgs args)
 {
     if (Validator != null)
     {
         var isValid = Validator(Text);
         this.HasError = isValid;
     }
     ControllerReference?.SetValueFromRenderer(FTEControl.TextProperty, Text);
 }
예제 #3
0
        public void AddUpdate(ControllerReference controllerReference, CommandData command)
        {
            if(IsDisposed) throw new ObjectDisposedException(null);

            // Add to the update buffer.
            lock(_inBuffer) { //vs enumerating a copy of the collection
                _inBuffer.Add(new ControllerOutputUpdate() { ControllerReference = controllerReference, Command = command });
            }
        }
예제 #4
0
        public void AddUpdate(ControllerReference controllerReference, CommandData command)
        {
            if (IsDisposed)
            {
                throw new ObjectDisposedException(null);
            }

            // Add to the update buffer.
            lock (_inBuffer) {            //vs enumerating a copy of the collection
                _inBuffer.Add(new ControllerOutputUpdate()
                {
                    ControllerReference = controllerReference, Command = command
                });
            }
        }
예제 #5
0
 private void _Remove(ControllerReference controllerReference)
 {
     _controllerReferences.Remove(controllerReference);
     VixenSystem.Controllers.RemoveSource(this, controllerReference);
 }
예제 #6
0
        public void Remove(Guid controllerId, int outputIndex)
        {
            ControllerReference controllerReference = new ControllerReference(controllerId, outputIndex);

            _Remove(controllerReference);
        }
예제 #7
0
 public void Remove(ControllerReference controllerReference)
 {
     _Remove(controllerReference);
 }
예제 #8
0
 private void _Add(ControllerReference controllerReference)
 {
     _controllerReferences.Add(controllerReference);
     VixenSystem.Controllers.AddSource(this, controllerReference);
 }
예제 #9
0
 public void Add(ControllerReference controllerReference)
 {
     _Add(controllerReference);
 }