Use Action instead of EventHandler since the event is fired without arguments.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-01-31 11:51:11 +00:00 committed by Mihaela Stoica
parent 1728eb64b6
commit 267035c2c6
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ namespace XenAdmin.Controls.CustomDataGraph
/// <summary>
/// Fired (on a background thread) when new performance data are received from the server
/// </summary>
internal event EventHandler<EventArgs> ArchivesUpdated;
internal event Action ArchivesUpdated;
internal readonly Dictionary<ArchiveInterval, DataArchive> Archives = new Dictionary<ArchiveInterval, DataArchive>();
@ -633,7 +633,7 @@ namespace XenAdmin.Controls.CustomDataGraph
private void OnArchivesUpdated()
{
if (ArchivesUpdated != null)
ArchivesUpdated(this, EventArgs.Empty);
ArchivesUpdated();
}
/// <summary>

View File

@ -285,7 +285,7 @@ namespace XenAdmin.TabPages
}
}
private void ArchiveMaintainer_ArchivesUpdated(object sender, EventArgs args)
private void ArchiveMaintainer_ArchivesUpdated()
{
Program.Invoke(this, RefreshAll);
}