private void fun1(){}private void fun2(){}private void fun3(){}private void button1_Click(Object sender,Event e){ if(radioButton1.Checked) { fun1(); } else if(radioButton2.Checked) { fun2(); } else { fun3(); }}