Beispiel #1
0
        /// <summary>
        /// Toggles the WrapText flag on the selection.
        /// </summary>
        public static void ToggleWrapText()
        {
            if (!SelectedCells.Any())
            {
                return;
            }

            bool state = !SelectedCells.All(x => x.WrapText);

            foreach (Date date in SelectedCells)
            {
                date.WrapText = state;
            }

            Functions.UpdateCheckedState();
            DrawInfo.EventSetup();
            Draw.Redraw();
            Global.Saved = false;
        }
Beispiel #2
0
        /// <summary>
        /// Toggles the CopyPrev flag on the selection.
        /// </summary>
        public static void ToggleCopyPrev()
        {
            if (!SelectedCells.Any())
            {
                return;
            }

            bool state = !SelectedCells.All(x => x.CopyPrev);

            foreach (Date date in SelectedCells)
            {
                date.CopyPrev = state;
                if (state)
                {
                    date.BigText = false;
                }
            }

            Functions.UpdateCheckedState();
            DrawInfo.EventSetup();
            Draw.Redraw();
            Global.Saved = false;
        }