예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            List <float> wl = new List <float>();

            wl = myMgr.GetWaveLength(ModLB.SelectedIndex);

            List <float> cnt = new List <float>();

            cnt = myMgr.GetCount(ModLB.SelectedIndex);

            InitChart((int)cnt.Max());
            if ((wl == null) || (cnt == null))
            {
                MessageBox.Show("Error Getting Spectrum.");
                return;
            }
            UpdateChart(wl, cnt);
        }