예제 #1
0
        private Settings GetSettings()
        {
            var element = UserOptions.GetElement("general/lastConnection");

            XElement e;

            return(new Settings
            {
                UserID = element.Element("userID")?.Value,
                Mode = element.Element("mode")?.Value,
                Method = element.Element("method")?.Value,
                Tns = element.Element("tns")?.Value,
                Host = element.Element("host")?.Value,
                Port = element.Element("port")?.Value,
                Service = element.Element("service")?.Value
            });
        }