找回密码
 立即注册

QQ登录

只需一步,快速开始

zheng_hq

银牌会员

151

主题

391

帖子

2227

积分

银牌会员

积分
2227

活字格认证

zheng_hq
银牌会员   /  发表于:2012-8-27 08:23  /   查看:6944  /  回复:4
未命名.jpg (4.54 KB, 下载次数: 1)

4 个回复

倒序浏览
Carl
版主   /  发表于:2012-8-27 09:21:00
沙发

  1.         private void radioButton318_CheckedChanged(object sender, EventArgs e)
  2.         {
  3.             查询();
  4.         }

  5.         private void 查询()
  6.         {
  7.             //
  8.         }

  9.         private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
  10.         {
  11.             if (radioButton318.Checked)
  12.             {
  13.                 查询();
  14.             }
  15.         }
复制代码
愿 Engine 归于沉寂,Timer 停止运动,Message Queue 不再流淌,Data Source 为我掌握
回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2012-9-1 18:36:00
板凳
全局变量:RadioButton tmpRadio = null;

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            radioButton318.Checked = true;
            if (tmpRadio != null)
            {
                tmpRadio.Checked = false;
            }
            tmpRadio = (sender as RadioButton);

            if (radioButton318.Checked)
            {
                   查询();
        }
        }

未命名.jpg (3.51 KB, 下载次数: 0)
回复 使用道具 举报
zheng_hq
银牌会员   /  发表于:2012-9-1 22:19:00
地板
未命名.jpg (3.63 KB, 下载次数: 0)
回复 使用道具 举报
Carl
版主   /  发表于:2012-9-2 09:11:00
5#
看不懂你的代码中tmpRadio 干什么用的。
只需要这样:
  1. private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
  2.         {
  3.             radioButton318.Checked = true;
  4.             查询();
  5.         }
复制代码
愿 Engine 归于沉寂,Timer 停止运动,Message Queue 不再流淌,Data Source 为我掌握
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部