Beispiel #1
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 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     // Add a sign element
     AddSignElement(SignContentFactory.GetFromName((string)comboBox2.SelectedItem));
 }