Ejemplo n.º 1
0
        protected void sendNetworkChangeRequest(ApplianceState state, object value)
        {
            try
            {
                PUCData data =
                    (PUCData)_windowParent.AssemblePUCData(new ValueData(this.DataWindow, value.ToString()));

                _appliance.GetConnection().Send(new PUC.Communication.StateChangeRequest(data));
            }
            catch (Exception)
            {
            }
        }
Ejemplo n.º 2
0
        public IStateNameData AssemblePUCData(IStateNameData data)
        {
            ListData listData = new ListData(this.DataWindow, _index);

            PUCData d = (PUCData)data;

            if (d is ValueData)
            {
                MultipleValueData mv = new MultipleValueData();
                mv.AddValue((ValueData)d);
                d = mv;
            }

            listData.AddElement(d);

            OpData ret = listData;

            if (_windowParent != null)
            {
                ret = (OpData)_windowParent.AssemblePUCData(listData);
            }

            return(ret);
        }