SunnyUI/SunnyUI.Demo/Controls/FRadioButton.cs

28 lines
716 B
C#

using System;
namespace Sunny.UI.Demo
{
public partial class FRadioButton : UITitlePage
{
public FRadioButton()
{
InitializeComponent();
uiRadioButtonGroup1.SelectedIndex = 2;
}
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;
}
}
}