public static SpectrumVideoComponent MakeComponent(CanvasContext ctx, SpectrumVideoComponentConfig cfg)
        {
            //Get info
            ComponentInfo info = GetComponentInfo(cfg.tag);

            //Construct
            return((SpectrumVideoComponent)Activator.CreateInstance(info.type, ctx, cfg.config));
        }
Ejemplo n.º 2
0
 public ComponentConfigDialog(SpectrumVideoComponentConfig component)
 {
     this.component = component;
     InitializeComponent();
 }