コード例 #1
0
ファイル: SignControl.cs プロジェクト: sgstair/ledsign
        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"));
        }