21 lines
630 B
C#
21 lines
630 B
C#
namespace CursorLang.Services;
|
|
|
|
/// <summary>
|
|
/// The icon in the notification area — the only face of an application that works
|
|
/// in the background.
|
|
/// </summary>
|
|
public interface ITrayIcon
|
|
{
|
|
/// <summary>The user asks for the settings window: the icon or its menu.</summary>
|
|
event EventHandler? OpenRequested;
|
|
|
|
/// <summary>The user asks the application to quit. There is no other way out.</summary>
|
|
event EventHandler? ExitRequested;
|
|
|
|
/// <summary>
|
|
/// Puts the icon into the notification area. Returns <c>false</c> when Windows
|
|
/// refuses to take it.
|
|
/// </summary>
|
|
bool Install();
|
|
}
|