Ejemplo n.º 1
0
        // Load configuration
        public object LoadConfiguration(XmlTextReader reader)
        {
            DLinkConfiguration config = new DLinkConfiguration();

            try
            {
                config.source	= reader.GetAttribute("source");
                config.login	= reader.GetAttribute("login");
                config.password	= reader.GetAttribute("password");
                config.frameInterval = int.Parse(reader.GetAttribute("interval"));
            }
            catch (Exception)
            {
            }
            return (object) config;
        }
Ejemplo n.º 2
0
        // Get configuration object
        public object GetConfiguration()
        {
            DLinkConfiguration config = new DLinkConfiguration();

            config.source	= serverBox.Text;
            config.login	= loginBox.Text;
            config.password	= passwordBox.Text;
            config.frameInterval = frameIntervals[rateCombo.SelectedIndex];

            return (object) config;
        }