Code Analyze and Refactor 0.12 (#109), version 0.11.2.2

This commit is contained in:
Markus Hofknecht 2020-06-28 20:57:03 +02:00
parent 3610ea0c59
commit 0fc995b184
2 changed files with 7 additions and 7 deletions

View file

@ -66,7 +66,7 @@ namespace SystemTrayMenu.UserInterface
if (!visible)
{
visible = true;
Show??.Invoke();
Show?.Invoke();
opacity = 0;
ChangeOpacity?.Invoke(this, opacity);
}
@ -86,7 +86,7 @@ namespace SystemTrayMenu.UserInterface
if (!visible)
{
visible = true;
Show??.Invoke();
Show?.Invoke();
opacity = 0;
ChangeOpacity?.Invoke(this, opacity);
}
@ -117,7 +117,7 @@ namespace SystemTrayMenu.UserInterface
opacity = 0;
ChangeOpacity?.Invoke(this, opacity);
visible = false;
Hide??.Invoke();
Hide?.Invoke();
StartStopTimer(FadingState.Idle);
}
break;

View file

@ -107,14 +107,14 @@ namespace SystemTrayMenu.UserInterface
labelTitle.MouseEnter += ControlsMouseEnter;
void ControlsMouseEnter(object sender, EventArgs e)
{
MouseEnter??.Invoke();
MouseEnter?.Invoke();
}
scrollBar.MouseLeave += ControlsMouseLeave;
dgv.MouseLeave += ControlsMouseLeave;
labelTitle.MouseLeave += ControlsMouseLeave;
void ControlsMouseLeave(object sender, EventArgs e)
{
MouseLeave??.Invoke();
MouseLeave?.Invoke();
}
}
@ -422,7 +422,7 @@ namespace SystemTrayMenu.UserInterface
}
}
MouseWheel??.Invoke();
MouseWheel?.Invoke();
}
internal void SetTitleColorDeactive()
@ -439,7 +439,7 @@ namespace SystemTrayMenu.UserInterface
{
if (e.Button == MouseButtons.Left)
{
UserClickedOpenFolder??.Invoke();
UserClickedOpenFolder?.Invoke();
}
}