Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 private void barCheckItem1_ItemDoubleClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     biFormatPainter.Checked = true;
     formatPainterMode       = FormatPainterMode.MultipleActions;
 }