mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
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:
parent
1728eb64b6
commit
267035c2c6
@ -92,7 +92,7 @@ namespace XenAdmin.Controls.CustomDataGraph
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired (on a background thread) when new performance data are received from the server
|
/// Fired (on a background thread) when new performance data are received from the server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal event EventHandler<EventArgs> ArchivesUpdated;
|
internal event Action ArchivesUpdated;
|
||||||
|
|
||||||
internal readonly Dictionary<ArchiveInterval, DataArchive> Archives = new Dictionary<ArchiveInterval, DataArchive>();
|
internal readonly Dictionary<ArchiveInterval, DataArchive> Archives = new Dictionary<ArchiveInterval, DataArchive>();
|
||||||
|
|
||||||
@ -633,7 +633,7 @@ namespace XenAdmin.Controls.CustomDataGraph
|
|||||||
private void OnArchivesUpdated()
|
private void OnArchivesUpdated()
|
||||||
{
|
{
|
||||||
if (ArchivesUpdated != null)
|
if (ArchivesUpdated != null)
|
||||||
ArchivesUpdated(this, EventArgs.Empty);
|
ArchivesUpdated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -285,7 +285,7 @@ namespace XenAdmin.TabPages
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ArchiveMaintainer_ArchivesUpdated(object sender, EventArgs args)
|
private void ArchiveMaintainer_ArchivesUpdated()
|
||||||
{
|
{
|
||||||
Program.Invoke(this, RefreshAll);
|
Program.Invoke(this, RefreshAll);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user