private static void InitRadioButton(ref SharpDXRadioButton control, string text, object tag, bool bChecked) { control = new SharpDXRadioButton(); control.Text = text; control.Tag = tag; control.Checked = bChecked; control.CheckedChangedEvent += radioButton_CheckedChanged; }
private static void radioButton_CheckedChanged(object sender, EventArgs e) { SharpDXRadioButton control = (SharpDXRadioButton)sender; ConfigUtils.SetValue(control.Tag.ToString(), control.Checked); }
private static void radioButton_CheckedChanged(object sender, EventArgs e) { SharpDXRadioButton control = (SharpDXRadioButton)sender; }