コード例 #1
0
        private void btnGetpara_Click(object sender, EventArgs e)
        {
            List <float> indata = null;

            if (string.IsNullOrEmpty(waverecid))
            {
                SpectrumPara spectrumPara = new SpectrumPara(waverecid);
                spectrumPara.FormClosed += (s, ea) =>
                {
                    spepara = spectrumPara.spe;
                    indata  = spectrumPara.indata;
                };
                if (spectrumPara.ShowDialog() == DialogResult.OK)
                {
                    GetSpectData(indata, waverecid);
                }
            }
        }
コード例 #2
0
        private void treeView_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeNode _SelectNode = this.treeView.SelectedNode;

            if (null != _SelectNode)
            {
                string dataid = _SelectNode.Name;
                waverecid = _SelectNode.Name;
                //DrawWaveFromDB(dataid);
                List <float> indata       = null;
                SpectrumPara spectrumPara = new SpectrumPara(dataid);
                spectrumPara.FormClosed += (s, ea) =>
                {
                    spepara = spectrumPara.spe;
                    indata  = spectrumPara.indata;
                };
                if (spectrumPara.ShowDialog() == DialogResult.OK)
                {
                    GetSpectData(indata, dataid);
                    //SpecTrum specttum = new SpecTrum("f2d72bcb-88b2-4f93-af7a-0b10834848d9", spectrump);
                    //specttum.Show(this.dockPanelContent);
                }
            }
        }