Beispiel #1
0
 void Animate_FrameComplete(SignAnimate a)
 {
     lock (Targets)
     {
         foreach (SignTargetUI st in Targets)
         {
             if (!st.UseConfigureDisplay)
             {
                 st.Target.SendImage(a.Render.SignOutput);
             }
         }
     }
     if (ConfigWindow != null)
     {
         if (ConfigWindow.Visible)
         {
             ConfigWindow.UpdateFrame(a.Render.SignOutput);
         }
     }
 }
Beispiel #2
0
        public SignControl()
        {
            InitializeComponent();
            Targets = new List<SignTargetUI>();
            Elements = new List<SignElementUI>();
            Animate = new SignAnimate();
            Animate.FrameComplete += Animate_FrameComplete;

            comboBox1.Items.Add("Test Board");
            comboBox1.Items.Add("Sign Preview");
            comboBox1.SelectedIndex = 0;

            foreach(SignContentType t in SignContentFactory.EnumerateContentTypes())
            {
                comboBox2.Items.Add(t.Name);
            }
            comboBox2.SelectedIndex = 0;

            listBox1.Items.Add("Global Configuration");

            // Add some things for test purproses.
            AddSignTarget(new SignPreview());
            AddSignElement(SignContentFactory.GetFromName("Simple Text"));
        }
Beispiel #3
0
        public SignControl()
        {
            InitializeComponent();
            Targets  = new List <SignTargetUI>();
            Elements = new List <SignElementUI>();
            Animate  = new SignAnimate();
            Animate.FrameComplete += Animate_FrameComplete;

            comboBox1.Items.Add("Test Board");
            comboBox1.Items.Add("Sign Preview");
            comboBox1.SelectedIndex = 0;

            foreach (SignContentType t in SignContentFactory.EnumerateContentTypes())
            {
                comboBox2.Items.Add(t.Name);
            }
            comboBox2.SelectedIndex = 0;

            listBox1.Items.Add("Global Configuration");

            // Add some things for test purproses.
            AddSignTarget(new SignPreview());
            AddSignElement(SignContentFactory.GetFromName("Simple Text"));
        }
Beispiel #4
0
 void Animate_FrameComplete(SignAnimate a)
 {
     lock (Targets)
     {
         foreach (SignTargetUI st in Targets)
         {
             if (!st.UseConfigureDisplay)
             {
                 st.Target.SendImage(a.Render.SignOutput);
             }
         }
     }
     if(ConfigWindow != null)
     {
         if(ConfigWindow.Visible)
         {
             ConfigWindow.UpdateFrame(a.Render.SignOutput);
         }
     }
 }