/// <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; }
/// <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; }