protected void propertyChanged()
{
string propXml = renderingControl.PropertyLastChange();
string result;
XMLParser xmlParser = new XMLParser();
UInt16 currentVolumeNew;
Boolean isMutedNew;
result = xmlParser.getNodeAttributeValue(propXml, "Volume", "val");
if (result != null)
{
currentVolumeNew = (UInt16)Convert.ToInt16(result);
if (currentVolumeNew != null && currentVolume != currentVolumeNew)
{
currentVolume = currentVolumeNew;
this.VolumeChangedSink(currentVolumeNew);
}
}
result = xmlParser.getNodeAttributeValue(propXml, "Mute", "val");
if (result != null)
{
if (result == "0")
isMutedNew = false;
else
isMutedNew = true;
if (isMutedNew != null /*&& isMuted != isMutedNew*/)
{
isMuted = isMutedNew;
this.MuteStateChangedSink(isMutedNew);
}
}
}