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

            config.source = urlBox.Text;

            return((object)config);
        }
Exemplo n.º 2
0
        // Save configuration
        public void SaveConfiguration(XmlTextWriter writer, object config)
        {
            StreamConfiguration cfg = (StreamConfiguration)config;

            if (cfg != null)
            {
                writer.WriteAttributeString("source", cfg.source);
            }
        }
Exemplo n.º 3
0
        // Set configuration
        public void SetConfiguration(object config)
        {
            StreamConfiguration cfg = (StreamConfiguration)config;

            if (cfg != null)
            {
                urlBox.Text = cfg.source;
            }
        }
Exemplo n.º 4
0
        // Load configuration
        public object LoadConfiguration(XmlTextReader reader)
        {
            StreamConfiguration config = new StreamConfiguration();

            try
            {
                config.source = reader.GetAttribute("source");
            }
            catch (Exception)
            {
            }
            return((object)config);
        }
Exemplo n.º 5
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            StreamConfiguration config = new StreamConfiguration();

            try
            {
                config.source = (string)reader["source"];
            }
            catch (Exception)
            {
            }
            return((object)config);
        }
Exemplo n.º 6
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            StreamConfiguration cfg = (StreamConfiguration)config;

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

                source.VideoSource = cfg.source;

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

			config.source = urlBox.Text;

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

			try
			{
				config.source = reader.GetAttribute("source");
			}
			catch (Exception)
			{
			}
			return (object) config;
		}
Exemplo n.º 9
0
        // Load configuration
        public object LoadConfiguration(Hashtable reader)
        {
            StreamConfiguration config = new StreamConfiguration();

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