2020-07-04 22:27:04 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Sunny.UI.Demo
|
2020-05-11 21:11:29 +08:00
|
|
|
|
{
|
2021-06-22 09:43:13 +08:00
|
|
|
|
public partial class FRadioButton : UIPage
|
2020-05-11 21:11:29 +08:00
|
|
|
|
{
|
|
|
|
|
public FRadioButton()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-07-04 22:27:04 +08:00
|
|
|
|
uiRadioButtonGroup1.SelectedIndex = 2;
|
2020-05-11 21:11:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-10 21:14:48 +08:00
|
|
|
|
public override void Init()
|
|
|
|
|
{
|
|
|
|
|
base.Init();
|
|
|
|
|
uiRadioButtonGroup1.SelectedIndex = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-11 21:11:29 +08:00
|
|
|
|
private void uiRadioButtonGroup1_ValueChanged(object sender, int index, string text)
|
|
|
|
|
{
|
2020-10-17 12:39:06 +08:00
|
|
|
|
Console.WriteLine("SelectedIndex: " + index + ", SelectedText: " + text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void uiButton2_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2023-11-18 11:38:29 +08:00
|
|
|
|
uiRadioButtonGroup1.SelectedIndex = -1;
|
2020-10-17 12:39:06 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void uiButton4_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
uiRadioButtonGroup1.SelectedIndex = 6;
|
2020-05-11 21:11:29 +08:00
|
|
|
|
}
|
2021-04-26 20:52:09 +08:00
|
|
|
|
|
|
|
|
|
private void uiRadioButton1_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(uiRadioButton1.Checked);
|
|
|
|
|
}
|
2020-05-11 21:11:29 +08:00
|
|
|
|
}
|
2021-06-22 09:43:13 +08:00
|
|
|
|
}
|