110,536
社区成员
发帖
与我相关
我的任务
分享
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioButton1.Checked)
{
clsGridStyle.rdo1();
clsCellCompute.rdo1();
clsStatistics.rdo1();
ListGrid.OwnerDrawCell += new FlexCell.Grid.OwnerDrawCellEventHandler(clsDrawImage.rdo1);
ListGrid.MouseDown += new FlexCell.Grid.MouseDownEventHandler(clsMouseDown.rdo1);
ListGrid.MouseDoubleClick += new MouseEventHandler(clsMouseDoubleClick.rdo1);
}
else
{
ListGrid.OwnerDrawCell -= new FlexCell.Grid.OwnerDrawCellEventHandler(clsDrawImage.rdo1);
ListGrid.MouseDown -= new FlexCell.Grid.MouseDownEventHandler(clsMouseDown.rdo1);
ListGrid.MouseDoubleClick -= new MouseEventHandler(clsMouseDoubleClick.rdo1);
}
}
private void radioButton1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked)
{
clsGridStyle.rdo1();
clsCellCompute.rdo1();
clsStatistics.rdo1();
ListGrid.OwnerDrawCell += new FlexCell.Grid.OwnerDrawCellEventHandler(clsDrawImage.rdo1);
ListGrid.MouseDown += new FlexCell.Grid.MouseDownEventHandler(clsMouseDown.rdo1);
ListGrid.MouseDoubleClick += new MouseEventHandler(clsMouseDoubleClick.rdo1);
}
else
{
ListGrid.OwnerDrawCell -= new FlexCell.Grid.OwnerDrawCellEventHandler(clsDrawImage.rdo1);
ListGrid.MouseDown -= new FlexCell.Grid.MouseDownEventHandler(clsMouseDown.rdo1);
ListGrid.MouseDoubleClick -= new MouseEventHandler(clsMouseDoubleClick.rdo1);
}
}
ListGrid.OwnerDrawCell -= new FlexCell.Grid.OwnerDrawCellEventHandler(clsDrawImage.rdo1);
ListGrid.MouseDown -= new FlexCell.Grid.MouseDownEventHandler(clsMouseDown.rdo1);
ListGrid.MouseDoubleClick -= new MouseEventHandler(clsMouseDoubleClick.rdo1);