Skip to content

Commit b8cae15

Browse files
authored
Merge pull request #1199 from Ordisoftware/dev
Dev
2 parents 666615f + 940f11d commit b8cae15

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

Project/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// en utilisant '*', comme indiqué ci-dessous :
3333
// [assembly: AssemblyVersion("1.0.*")]
3434
[assembly: NeutralResourcesLanguage("en")]
35-
[assembly: AssemblyVersion("9.30.0.0")]
36-
[assembly: AssemblyFileVersion("9.30.0.0")]
35+
[assembly: AssemblyVersion("9.31.0.0")]
36+
[assembly: AssemblyFileVersion("9.31.0.0")]

Project/Source/Common/Core/Classes/StackMethods.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static public bool IsVisibleOnTop(this Control control, int requiredPercent = 10
221221
/// From https://stackoverflow.com/questions/26587843/prevent-toolstripmenuitems-from-jumping-to-second-screen
222222
static public void SetDropDownOpening(this ToolStrip toolstrip, EventHandler action = null)
223223
{
224-
if ( action is null ) action = MenuItemDropDownOpening;
224+
action ??= MenuItemDropDownOpening;
225225
var items1 = toolstrip.Items.OfType<ToolStripDropDownButton>();
226226
var items2 = items1.SelectMany(item => item.DropDownItems.OfType<ToolStripMenuItem>());
227227
var items3 = items2.SelectMany(item => item.DropDownItems.OfType<ToolStripMenuItem>());
@@ -230,14 +230,13 @@ static public void SetDropDownOpening(this ToolStrip toolstrip, EventHandler act
230230
items3.ForEach(item => { if ( item.HasDropDownItems ) item.DropDownOpening += action; });
231231
}
232232

233-
234233
/// <summary>
235234
/// Ensure drop down menu items are displayed on the same screen.
236235
/// </summary>
237236
/// From https://stackoverflow.com/questions/26587843/prevent-toolstripmenuitems-from-jumping-to-second-screen
238237
static public void SetDropDownOpening(this ContextMenuStrip menu, EventHandler action = null)
239238
{
240-
if ( action is null ) action = MenuItemDropDownOpening;
239+
action ??= MenuItemDropDownOpening;
241240
var items1 = menu.Items.OfType<ToolStripMenuItem>();
242241
var items2 = items1.SelectMany(item => item.DropDownItems.OfType<ToolStripMenuItem>());
243242
var items3 = items2.SelectMany(item => item.DropDownItems.OfType<ToolStripMenuItem>());

Project/Source/Common/Core/System/MediaMixer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static public void StopPlaying()
5858

5959
static public void MuteVolume(IntPtr? handle = null)
6060
{
61-
if ( handle is null ) handle = Globals.MainForm?.Handle;
61+
handle ??= Globals.MainForm?.Handle;
6262
if ( handle is null ) return;
6363
SendMessageW(handle.Value, WM_APPCOMMAND, handle.Value, (IntPtr)APPCOMMAND_VOLUME_MUTE);
6464
}

Project/Source/Common/Core/System/SystemManager.Power.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static public bool IsScreensaverRunning
8585

8686
static public bool IsForegroundFullScreen(Screen screen = null)
8787
{
88-
if ( screen is null ) screen = Screen.PrimaryScreen;
88+
screen ??= Screen.PrimaryScreen;
8989
var rect = new NativeMethods.RECT();
9090
NativeMethods.GetWindowRect(new HandleRef(null, NativeMethods.GetForegroundWindow()), ref rect);
9191
var rectangle = new Rectangle(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);

Project/Source/Common/Core/WinControls/TextBoxEx.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public override string Text
8383
set
8484
{
8585
InsertingText?.Invoke(this, TextUpdating.Text, ref value);
86-
if ( value is null ) value = string.Empty;
86+
value ??= string.Empty;
8787
if ( value == Text ) return;
8888
if ( value.Length > MaxLength ) return;
8989
base.Text = value;
@@ -112,7 +112,7 @@ public override string SelectedText
112112
set
113113
{
114114
InsertingText?.Invoke(this, TextUpdating.Selected, ref value);
115-
if ( value is null ) value = string.Empty;
115+
value ??= string.Empty;
116116
if ( value == base.SelectedText ) return;
117117
if ( Text.Length + value.Length - SelectionLength > MaxLength ) return;
118118
base.SelectedText = value;

Project/Source/Forms/MainForm/Data/MainForm.FillMonths.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ public void FillMonths()
158158
if ( color3 is not null )
159159
color1 = color3;
160160
else
161-
if ( color1 is null )
162-
color1 = Settings.MonthViewBackColor;
161+
color1 ??= Settings.MonthViewBackColor;
163162
DayBrushes[YearLast - date.Year, date.Month, date.Day] = SolidBrushesPool.Get(color1.Value);
164163
if ( isCelebrationWeekEnd )
165164
isCelebrationWeekStart = false;

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,12 @@ It is therefore possible to use [AutoHotKey](https://www.autohotkey.com) to defi
395395
- Add comments to bookmarks.
396396
- Add lunar months board with Hebrew names, meanings, lettriqs and tools.
397397
- Add command-line option `--lunarmonths` to show the lunar months board.
398+
399+
#### 2022.08.10 - Version 9.31
400+
398401
- Fix auto-generate years interval.
399402
- Use a dedicated folder in application's document folder for exports and imports settings, themes and bookmarks.
403+
- Update web links with Elamite language.
400404

401405
#### 2022.08.05 - Version 9.30
402406

Setup/OrdisoftwareHebrewCalendarSetup.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define MyAppVersion "9.30"
1+
#define MyAppVersion "9.31"
22
#define MyAppName "Hebrew Calendar"
33
#define MyAppNameNoSpace "HebrewCalendar"
44
#define MyAppExeName "Ordisoftware.Hebrew.Calendar.exe"

0 commit comments

Comments
 (0)