public void OnValueChanged(int attributeID, object value) { GXDLMSGprsSetup target = Target as GXDLMSGprsSetup; if (attributeID == 4) { CPrecedenceTB.Text = target.DefaultQualityOfService.Precedence.ToString(); CDelayTB.Text = target.DefaultQualityOfService.Delay.ToString(); CReliabilityTB.Text = target.DefaultQualityOfService.Reliability.ToString(); CPeakThroughputTB.Text = target.DefaultQualityOfService.PeakThroughput.ToString(); CMeanThroughputTB.Text = target.DefaultQualityOfService.MeanThroughput.ToString(); MPrecedenceTB.Text = target.RequestedQualityOfService.Precedence.ToString(); MDelayTB.Text = target.RequestedQualityOfService.Delay.ToString(); MReliabilityTB.Text = target.RequestedQualityOfService.Reliability.ToString(); MPeakThroughputTB.Text = target.RequestedQualityOfService.PeakThroughput.ToString(); MMeanThroughputTB.Text = target.RequestedQualityOfService.MeanThroughput.ToString(); } else { throw new IndexOutOfRangeException("attributeID"); } }
public void OnValueChanged(GXDLMSViewArguments arg) { GXDLMSGprsSetup target = Target as GXDLMSGprsSetup; if (arg.Index == 4) { CPrecedenceTB.Text = target.DefaultQualityOfService.Precedence.ToString(); CDelayTB.Text = target.DefaultQualityOfService.Delay.ToString(); CReliabilityTB.Text = target.DefaultQualityOfService.Reliability.ToString(); CPeakThroughputTB.Text = target.DefaultQualityOfService.PeakThroughput.ToString(); CMeanThroughputTB.Text = target.DefaultQualityOfService.MeanThroughput.ToString(); MPrecedenceTB.Text = target.RequestedQualityOfService.Precedence.ToString(); MDelayTB.Text = target.RequestedQualityOfService.Delay.ToString(); MReliabilityTB.Text = target.RequestedQualityOfService.Reliability.ToString(); MPeakThroughputTB.Text = target.RequestedQualityOfService.PeakThroughput.ToString(); MMeanThroughputTB.Text = target.RequestedQualityOfService.MeanThroughput.ToString(); } else { throw new IndexOutOfRangeException("index"); } }