Beispiel #1
0
        private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // 新建窗体
            FormDecoderPref frmPref = new FormDecoderPref();

            frmPref.sample_freq = sample_freq;
            frmPref.isVerify    = isVerify;

            // 显示窗体
            frmPref.ShowDialog();

            // 接受返回值
            this.sample_freq = frmPref.sample_freq;
            this.isVerify    = frmPref.isVerify;
        }
Beispiel #2
0
        private void btnDecSett_Click(object sender, EventArgs e)
        {
            // 新建窗体
            FormDecoderPref frmPref = new FormDecoderPref();

            frmPref.sample_freq = sample_freq;
            frmPref.isVerify    = isVerify;

            // 显示窗体
            frmPref.ShowDialog();

            // 接受返回值
            this.sample_freq = frmPref.sample_freq;
            this.isVerify    = frmPref.isVerify;
        }