private void barCheckItem1_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { bool shouldCopyFormat = biFormatPainter.Checked; sourceCell = shouldCopyFormat ? spreadsheetControl.SelectedCell : null; formatPainterMode = shouldCopyFormat ? FormatPainterMode.SingleAction : FormatPainterMode.None; }
private void barCheckItem1_ItemDoubleClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { biFormatPainter.Checked = true; formatPainterMode = FormatPainterMode.MultipleActions; }