예제 #1
0
        void radioButton_CheckedChanged(object sender, EventArgs e)
        {
            System.Windows.Forms.RadioButton radioButton = (System.Windows.Forms.RadioButton)sender;
            VirtualCheckItem item = (VirtualCheckItem)radioButton.Tag;

            if (item.Checked != radioButton.Checked)
            {
                item.Checked = radioButton.Checked;
            }
        }
예제 #2
0
        void checkbox_CheckedChanged(object sender, EventArgs e)
        {
            DevComponents.DotNetBar.Controls.CheckBoxX checkbox = (DevComponents.DotNetBar.Controls.CheckBoxX)sender;
            VirtualCheckItem item = (VirtualCheckItem)checkbox.Tag;

            if (item.Checked != checkbox.Checked)
            {
                item.Checked = checkbox.Checked;
            }
        }