public void LoadLocalData() { if (!File.Exists(StoreFileName)) { LocalData = new VMCALocalData(); return; } try { using (var ms = new MemoryStream()) { var bytes = File.ReadAllBytes(StoreFileName); ms.Write(bytes, 0, bytes.Length); ms.Seek(0, SeekOrigin.Begin); var xmlSerializer = new XmlSerializer(typeof(VMCALocalData)); LocalData = xmlSerializer.Deserialize(ms) as VMCALocalData; LocalData.FillServerQueue(); } } catch (Exception) { } }