// Get configuration object
        public object GetConfiguration()
        {
            DLinkConfiguration config = new DLinkConfiguration();

            config.source   = serverBox.Text;
            config.login    = loginBox.Text;
            config.password = passwordBox.Text;

            return((object)config);
        }
        // Set configuration
        public void SetConfiguration(object config)
        {
            DLinkConfiguration cfg = (DLinkConfiguration)config;

            if (cfg != null)
            {
                serverBox.Text   = cfg.source;
                loginBox.Text    = cfg.login;
                passwordBox.Text = cfg.password;
            }
        }
Beispiel #3
0
        // Save configuration
        public void SaveConfiguration(XmlTextWriter writer, object config)
        {
            DLinkConfiguration cfg = (DLinkConfiguration)config;

            if (cfg != null)
            {
                writer.WriteAttributeString("source", cfg.source);
                writer.WriteAttributeString("login", cfg.login);
                writer.WriteAttributeString("password", cfg.password);
                writer.WriteAttributeString("interval", cfg.frameInterval.ToString());
            }
        }
Beispiel #4
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);
        }
Beispiel #5
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            DLinkConfiguration config = new DLinkConfiguration();

            try
            {
                config.source        = (string)reader["source"];
                config.login         = (string)reader["login"];
                config.password      = (string)reader["password"];
                config.frameInterval = int.Parse((string)reader["interval"]);
            }
            catch (Exception)
            {
            }
            return((object)config);
        }
Beispiel #6
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            DLinkConfiguration cfg = (DLinkConfiguration)config;

            if (cfg != null)
            {
                FujikoCamera source = new FujikoCamera();

                source.VideoSource   = cfg.source;
                source.Login         = cfg.login;
                source.Password      = cfg.password;
                source.FrameInterval = cfg.frameInterval;

                return((VsICoreProvider)source);
            }
            return(null);
        }
		// Get configuration object
		public object GetConfiguration()
		{
			DLinkConfiguration config = new DLinkConfiguration();

			config.source	= serverBox.Text;
			config.login	= loginBox.Text;
			config.password	= passwordBox.Text;

			return (object) config;
		}
Beispiel #8
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;
		}
Beispiel #9
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            DLinkConfiguration config = new DLinkConfiguration();

            try
            {
                config.source = (string)reader["source"];
                config.login = (string)reader["login"];
                config.password = (string)reader["password"];
                config.frameInterval = int.Parse((string)reader["interval"]);
            }
            catch (Exception)
            {
            }
            return (object)config;
        }