コード例 #1
0
        protected override void Control_DoubleClick(object sender, EventArgs e)
        {
            FormFFTSourceSelect formFFT = new FormFFTSourceSelect();
            formFFTSource = formFFT;

            for (int i = 0; i < tbControlPanelAssignment.Rows.Count; i++)
            {
                if (((ObjectSignal)tbControlPanelAssignment.Rows[i]["control"]).ControlCategory == ControlCategories.Sequence)
                {
                    if (((ObjectSignal)tbControlPanelAssignment.Rows[i]["control"]).ControlName != this.controlName)
                    {
                        formFFTSource.listBoxControlSource.Items.Add(((ObjectSequence)tbControlPanelAssignment.Rows[i]["control"]).ControlName);
                    }
                }
            }

            formFFTSource.comboBoxEditWindow.SelectedItem = windowType.WindowType.ToString();
            formFFTSource.comboBoxEditWindow.Select();

            formFFTSource.comboBoxEditOutput.SelectedItem = outputType;
            formFFTSource.comboBoxEditOutput.Select();

            formFFTSource.listBoxControlSource.SelectedValue = SequenceSource.ControlName;

            formFFTSource.FormClosing += new FormClosingEventHandler(formFFTSource_FormClosing);
            formFFTSource.Show();
        }
コード例 #2
0
        public void InitFormFFT()
        {
            FormFFTSourceSelect formFFT = new FormFFTSourceSelect();
            formFFTSource = formFFT;

            for (int i = 0; i < tbControlPanelAssignment.Rows.Count; i++)
            {
                if (((ObjectSignal)tbControlPanelAssignment.Rows[i]["control"]).ControlCategory == ControlCategories.Sequence)
                {
                    if (((ObjectSignal)tbControlPanelAssignment.Rows[i]["control"]).ControlName != this.controlName)
                    {
                        formFFTSource.listBoxControlSource.Items.Add(((ObjectSequence)tbControlPanelAssignment.Rows[i]["control"]).ControlName);
                    }
                }
            }
            formFFTSource.comboBoxEditWindow.SelectedIndex = 0;
            formFFTSource.comboBoxEditWindow.Select();
            formFFTSource.comboBoxEditOutput.SelectedIndex = 0;
            formFFTSource.comboBoxEditOutput.Select();

            formFFTSource.FormClosing += new FormClosingEventHandler(formFFTSource_FormClosing);
            formFFTSource.ShowDialog();
        }