SunnyUI/SunnyUI.Demo/Controls/FRadioButton.cs

34 lines
849 B
C#
Raw Normal View History

using System;
namespace Sunny.UI.Demo
2020-05-11 21:11:29 +08:00
{
public partial class FRadioButton : UITitlePage
{
public FRadioButton()
{
InitializeComponent();
uiRadioButtonGroup1.SelectedIndex = 2;
2020-05-11 21:11:29 +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)
{
Console.WriteLine("SelectedIndex: " + index + ", SelectedText: " + text);
}
private void uiButton2_Click(object sender, EventArgs e)
{
uiRadioButtonGroup1.SelectedNone();
}
private void uiButton4_Click(object sender, EventArgs e)
{
uiRadioButtonGroup1.SelectedIndex = 6;
2020-05-11 21:11:29 +08:00
}
}
}