Exemple #1
0
        private void setItems()
        {
            var newCollection = new ObservableCollection <INodeWrapper>();
            var signalIn      = FindItemByNodeId(AnalogOutput.SignalIn.ID) as SignalInItem;

            if (signalIn == null)
            {
                signalIn = new SignalInItem(this, AnalogOutput.SignalIn);
                HookupHandlers(signalIn);
            }
            newCollection.Add(signalIn);
            Items = newCollection;
        }
Exemple #2
0
 void HookupHandlers(SignalInItem signalIn)
 {
     signalIn.Parent  = this;
     signalIn.Edited += new EditedHandler(SignalIn_Edited);
 }
 private void setItems()
 {
     var newCollection = new ObservableCollection<INodeWrapper>();
     var signalIn = FindItemByNodeId(AnalogOutput.SignalIn.ID) as SignalInItem;
     if (signalIn == null)
     {
         signalIn = new SignalInItem(this, AnalogOutput.SignalIn);
         HookupHandlers(signalIn);
     }
     newCollection.Add(signalIn);
     Items = newCollection;
 }
 void HookupHandlers(SignalInItem signalIn)
 {
     signalIn.Parent = this;
     signalIn.Edited += new EditedHandler(SignalIn_Edited);
 }