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); } } }
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")); }
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")); }
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); } } }