Initial commit.
This commit is contained in:
8
Wino.Core/Messages/Shell/ApplicationThemeChanged.cs
Normal file
8
Wino.Core/Messages/Shell/ApplicationThemeChanged.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When the application theme changed.
|
||||
/// </summary>
|
||||
/// <param name="IsUnderlyingThemeDark"></param>
|
||||
public record ApplicationThemeChanged(bool IsUnderlyingThemeDark);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using Wino.Core.Domain.Entities;
|
||||
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When
|
||||
/// - There is no selection of any folder for any account
|
||||
/// - Multiple accounts exists
|
||||
/// - User clicked 'Create New Mail'
|
||||
///
|
||||
/// flyout must be presented to pick correct account.
|
||||
/// This message will be picked up by UWP Shell.
|
||||
/// </summary>
|
||||
public record CreateNewMailWithMultipleAccountsRequested(IEnumerable<MailAccount> AllAccounts);
|
||||
}
|
||||
17
Wino.Core/Messages/Shell/InfoBarMessageRequested.cs
Normal file
17
Wino.Core/Messages/Shell/InfoBarMessageRequested.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// For displaying right sliding notification message in shell.
|
||||
/// </summary>
|
||||
/// <param name="Severity">Severity of notification.</param>
|
||||
/// <param name="Title">Title of the message.</param>
|
||||
/// <param name="Message">Message content.</param>
|
||||
public record InfoBarMessageRequested(InfoBarMessageType Severity,
|
||||
string Title,
|
||||
string Message,
|
||||
string ActionButtonTitle = "",
|
||||
Action Action = null);
|
||||
}
|
||||
7
Wino.Core/Messages/Shell/LanguageChanged.cs
Normal file
7
Wino.Core/Messages/Shell/LanguageChanged.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When application language is updated.
|
||||
/// </summary>
|
||||
public record LanguageChanged;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
public class MailtoProtocolMessageRequested { }
|
||||
}
|
||||
10
Wino.Core/Messages/Shell/NavigationPaneModeChanged.cs
Normal file
10
Wino.Core/Messages/Shell/NavigationPaneModeChanged.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Wino.Core.Domain.Enums;
|
||||
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When navigation pane mode is changed.
|
||||
/// </summary>
|
||||
/// <param name="NewMode">New navigation mode.</param>
|
||||
public record NavigationPaneModeChanged(MenuPaneMode NewMode);
|
||||
}
|
||||
7
Wino.Core/Messages/Shell/ShellStateUpdated.cs
Normal file
7
Wino.Core/Messages/Shell/ShellStateUpdated.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Wino.Core.Messages.Shell
|
||||
{
|
||||
/// <summary>
|
||||
/// When reading mail state or reader pane narrowed state is changed.
|
||||
/// </summary>
|
||||
public record ShellStateUpdated;
|
||||
}
|
||||
Reference in New Issue
Block a user