日期:2014-05-18 浏览次数:21232 次
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);