Exemplo n.º 1
0
        // Get configuration object
        public object GetConfiguration()
        {
            MJPEGConfiguration config = new MJPEGConfiguration();

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

            return((object)config);
        }
Exemplo n.º 2
0
        // Set configuration
        public void SetConfiguration(object config)
        {
            MJPEGConfiguration cfg = (MJPEGConfiguration)config;

            if (cfg != null)
            {
                urlBox.Text      = cfg.source;
                loginBox.Text    = cfg.login;
                passwordBox.Text = cfg.password;
            }
        }
Exemplo n.º 3
0
        // Save configuration
        public void SaveConfiguration(XmlTextWriter writer, object config)
        {
            MJPEGConfiguration cfg = (MJPEGConfiguration)config;

            if (cfg != null)
            {
                writer.WriteAttributeString("source", cfg.source);
                writer.WriteAttributeString("login", cfg.login);
                writer.WriteAttributeString("password", cfg.password);
            }
        }
Exemplo n.º 4
0
        // Load configuration
        public object LoadConfiguration(XmlTextReader reader)
        {
            MJPEGConfiguration config = new MJPEGConfiguration();

            try
            {
                config.source   = reader.GetAttribute("source");
                config.login    = reader.GetAttribute("login");
                config.password = reader.GetAttribute("password");
            }
            catch (Exception)
            {
            }

            return((object)config);
        }
Exemplo n.º 5
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            MJPEGConfiguration cfg = (MJPEGConfiguration)config;

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

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

                return((VsICoreProvider)source);
            }
            return(null);
        }
Exemplo n.º 6
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            MJPEGConfiguration config = new MJPEGConfiguration();

            try
            {
                config.source   = (string)reader["source"];
                config.login    = (string)reader["login"];
                config.password = (string)reader["password"];
            }
            catch (Exception)
            {
            }

            return((object)config);
        }
Exemplo n.º 7
0
		// Get configuration object
		public object GetConfiguration()
		{
			MJPEGConfiguration	config = new MJPEGConfiguration();

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

			return (object) config;
		}
Exemplo n.º 8
0
		// Load configuration
		public object LoadConfiguration(XmlTextReader reader)
		{
			MJPEGConfiguration	config = new MJPEGConfiguration();

			try
			{
				config.source	= reader.GetAttribute("source");
				config.login	= reader.GetAttribute("login");
				config.password	= reader.GetAttribute("password");
			}
			catch (Exception)
			{
			}

			return (object) config;
		}
Exemplo n.º 9
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            MJPEGConfiguration config = new MJPEGConfiguration();

            try
            {
                config.source = (string)reader["source"];
                config.login = (string)reader["login"];
                config.password = (string)reader["password"];
            }
            catch (Exception)
            {
            }

            return (object)config;
        }