Table of Contents

Interface IMainWindowService

Namespace
Artemis.UI.Shared.Services.MainWindow
Assembly
Artemis.UI.Shared.dll

A service that can be used to manage the state of the main window.

public interface IMainWindowService : IArtemisSharedUIService

Properties

IsMainWindowFocused

Gets a boolean indicating whether the main window is currently focused

bool IsMainWindowFocused { get; }

Property Value

bool

IsMainWindowOpen

Gets a boolean indicating whether the main window is currently open

bool IsMainWindowOpen { get; }

Property Value

bool

Methods

CloseMainWindow()

Closes the main window if it is not already closed, must be called on the UI thread

void CloseMainWindow()

ConfigureMainWindowProvider(IMainWindowProvider)

Sets up the main window provider that controls the state of the main window

void ConfigureMainWindowProvider(IMainWindowProvider mainWindowProvider)

Parameters

mainWindowProvider IMainWindowProvider

The main window provider to use to control the state of the main window

OpenMainWindow()

Opens the main window if it is not already open, must be called on the UI thread

void OpenMainWindow()

Events

MainWindowClosed

Occurs when the main window has been closed

event EventHandler? MainWindowClosed

Event Type

EventHandler

MainWindowFocused

Occurs when the main window has been focused

event EventHandler? MainWindowFocused

Event Type

EventHandler

MainWindowOpened

Occurs when the main window has been opened

event EventHandler? MainWindowOpened

Event Type

EventHandler

MainWindowUnfocused

Occurs when the main window has been unfocused

event EventHandler? MainWindowUnfocused

Event Type

EventHandler