public void Initialize() { Function = new DeviceFunction(); Function.Deserialize(XElement.Parse(XmlText)); }