1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Codestyle

This commit is contained in:
Robert 2020-11-30 21:27:36 +01:00
parent c5e3750172
commit 253c2f069b
2 changed files with 11 additions and 7 deletions

View File

@ -9,11 +9,6 @@ namespace Artemis.Core.Services
/// </summary>
public interface IModuleService : IArtemisService
{
/// <summary>
/// Occurs when the priorty of a module is updated.
/// </summary>
event EventHandler ModulePriorityUpdated;
/// <summary>
/// Gets the current active module override. If set, all other modules are deactivated and only the
/// <see cref="ActiveModuleOverride" /> is active.
@ -38,5 +33,10 @@ namespace Artemis.Core.Services
/// <param name="category">The new priority category of the module</param>
/// <param name="priority">The new priority of the module</param>
void UpdateModulePriority(Module module, ModulePriorityCategory category, int priority);
/// <summary>
/// Occurs when the priority of a module is updated.
/// </summary>
event EventHandler? ModulePriorityUpdated;
}
}

View File

@ -149,8 +149,6 @@ namespace Artemis.Core.Services
UpdateModulePriority(module, category, priority);
}
public event EventHandler ModulePriorityUpdated;
public Module? ActiveModuleOverride { get; private set; }
public async Task SetActiveModuleOverride(Module? overrideModule)
@ -266,5 +264,11 @@ namespace Artemis.Core.Services
ModulePriorityUpdated?.Invoke(this, EventArgs.Empty);
}
#region Events
public event EventHandler? ModulePriorityUpdated;
#endregion
}
}