Пример #1
0
        // Create video source object
        public VsICoreProvider CreateVideoSource(object config)
        {
            StardotConfiguration cfg = (StardotConfiguration)config;

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

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

                return((VsICoreProvider)source);
            }
            return(null);
        }
Пример #2
0
		// Create video source object
		public VsICoreProvider CreateVideoSource(object config)
		{
			StardotConfiguration cfg = (StardotConfiguration) config;
			
			if (cfg != null)
			{
				StardotExpress6 source = new StardotExpress6();

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

				return (VsICoreProvider) source;
			}
			return null;
		}