Fyx typo and formating
This commit is contained in:
@@ -299,7 +299,7 @@
|
|||||||
"NewAccountDialog_AccountNamePlaceholder": "eg. Personal Mail",
|
"NewAccountDialog_AccountNamePlaceholder": "eg. Personal Mail",
|
||||||
"NewAccountDialog_Title": "Add New Account",
|
"NewAccountDialog_Title": "Add New Account",
|
||||||
"NoMailSelected": "No message selected",
|
"NoMailSelected": "No message selected",
|
||||||
"NoMessageCrieteria": "Mo messages match your search criteria",
|
"NoMessageCrieteria": "No messages match your search criteria",
|
||||||
"NoMessageEmptyFolder": "This folder is empty",
|
"NoMessageEmptyFolder": "This folder is empty",
|
||||||
"Notifications_MultipleNotificationsMessage": "You have {0} new mails",
|
"Notifications_MultipleNotificationsMessage": "You have {0} new mails",
|
||||||
"Notifications_MultipleNotificationsTitle": "New Mails",
|
"Notifications_MultipleNotificationsTitle": "New Mails",
|
||||||
|
|||||||
2
Wino.Core.Domain/Translator.Designer.cs
generated
2
Wino.Core.Domain/Translator.Designer.cs
generated
@@ -1519,7 +1519,7 @@ namespace Wino.Core.Domain
|
|||||||
public static string NoMailSelected => Resources.GetTranslatedString(@"NoMailSelected");
|
public static string NoMailSelected => Resources.GetTranslatedString(@"NoMailSelected");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mo messages match your search criteria
|
/// No messages match your search criteria
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string NoMessageCrieteria => Resources.GetTranslatedString(@"NoMessageCrieteria");
|
public static string NoMessageCrieteria => Resources.GetTranslatedString(@"NoMessageCrieteria");
|
||||||
|
|
||||||
|
|||||||
@@ -167,6 +167,65 @@ namespace Wino.Mail.ViewModels
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Properties
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Selected internal folder. This can be either folder's own name or Focused-Other.
|
||||||
|
/// </summary>
|
||||||
|
public FolderPivotViewModel SelectedFolderPivot
|
||||||
|
{
|
||||||
|
get => _selectedFolderPivot;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_selectedFolderPivot != null)
|
||||||
|
_selectedFolderPivot.SelectedItemCount = 0;
|
||||||
|
|
||||||
|
SetProperty(ref _selectedFolderPivot, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Selected sorting option.
|
||||||
|
/// </summary>
|
||||||
|
public SortingOption SelectedSortingOption
|
||||||
|
{
|
||||||
|
get => _selectedSortingOption;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (SetProperty(ref _selectedSortingOption, value))
|
||||||
|
{
|
||||||
|
if (value != null && MailCollection != null)
|
||||||
|
{
|
||||||
|
MailCollection.SortingType = value.Type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool CanSynchronize => !IsAccountSynchronizerInSynchronization && IsFolderSynchronizationEnabled;
|
||||||
|
public bool IsFolderSynchronizationEnabled => ActiveFolder?.IsSynchronizationEnabled ?? false;
|
||||||
|
public int SelectedItemCount => SelectedItems.Count;
|
||||||
|
public bool HasMultipleItemSelections => SelectedItemCount > 1;
|
||||||
|
public bool HasSelectedItems => SelectedItems.Any();
|
||||||
|
public bool IsArchiveSpecialFolder => ActiveFolder?.SpecialFolderType == SpecialFolderType.Archive;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates current state of the mail list. Doesn't matter it's loading or no.
|
||||||
|
/// </summary>
|
||||||
|
public bool IsEmpty => MailCollection.Count == 0;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Progress ring only should be visible when the folder is initializing and there are no items. We don't need to show it when there are items.
|
||||||
|
/// </summary>
|
||||||
|
public bool IsProgressRing => IsInitializingFolder && IsEmpty;
|
||||||
|
private bool isFilters => IsInSearchMode || SelectedFilterOption.Type != FilterOptionType.All;
|
||||||
|
public bool IsCriteriaFailed => !IsInitializingFolder && IsEmpty && isFilters;
|
||||||
|
public bool IsFolderEmpty => !IsInitializingFolder && IsEmpty && !isFilters;
|
||||||
|
|
||||||
|
public bool IsInSearchMode { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
private async void ActiveMailItemChanged(MailItemViewModel selectedMailItemViewModel)
|
private async void ActiveMailItemChanged(MailItemViewModel selectedMailItemViewModel)
|
||||||
{
|
{
|
||||||
if (_activeMailItem == selectedMailItemViewModel) return;
|
if (_activeMailItem == selectedMailItemViewModel) return;
|
||||||
@@ -209,64 +268,6 @@ namespace Wino.Mail.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Selected internal folder. This can be either folder's own name or Focused-Other.
|
|
||||||
/// </summary>
|
|
||||||
public FolderPivotViewModel SelectedFolderPivot
|
|
||||||
{
|
|
||||||
get => _selectedFolderPivot;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (_selectedFolderPivot != null)
|
|
||||||
_selectedFolderPivot.SelectedItemCount = 0;
|
|
||||||
|
|
||||||
SetProperty(ref _selectedFolderPivot, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Selected sorting option.
|
|
||||||
/// </summary>
|
|
||||||
public SortingOption SelectedSortingOption
|
|
||||||
{
|
|
||||||
get => _selectedSortingOption;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (SetProperty(ref _selectedSortingOption, value))
|
|
||||||
{
|
|
||||||
if (value != null && MailCollection != null)
|
|
||||||
{
|
|
||||||
MailCollection.SortingType = value.Type;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Properties
|
|
||||||
public bool CanSynchronize => !IsAccountSynchronizerInSynchronization && IsFolderSynchronizationEnabled;
|
|
||||||
public bool IsFolderSynchronizationEnabled => ActiveFolder?.IsSynchronizationEnabled ?? false;
|
|
||||||
public int SelectedItemCount => SelectedItems.Count;
|
|
||||||
public bool HasMultipleItemSelections => SelectedItemCount > 1;
|
|
||||||
public bool HasSelectedItems => SelectedItems.Any();
|
|
||||||
public bool IsArchiveSpecialFolder => ActiveFolder?.SpecialFolderType == SpecialFolderType.Archive;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Indicates current state of the mail list. Doesn't matter it's loading or no.
|
|
||||||
/// </summary>
|
|
||||||
public bool IsEmpty => MailCollection.Count == 0;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Progress ring only should be visible when the folder is initializing and there are no items. We don't need to show it when there are items.
|
|
||||||
/// </summary>
|
|
||||||
public bool IsProgressRing => IsInitializingFolder && IsEmpty;
|
|
||||||
private bool isFilters => IsInSearchMode || SelectedFilterOption.Type != FilterOptionType.All;
|
|
||||||
public bool IsCriteriaFailed => !IsInitializingFolder && IsEmpty && isFilters;
|
|
||||||
public bool IsFolderEmpty => !IsInitializingFolder && IsEmpty && !isFilters;
|
|
||||||
|
|
||||||
public bool IsInSearchMode { get; set; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
public void NotifyItemSelected()
|
public void NotifyItemSelected()
|
||||||
{
|
{
|
||||||
OnPropertyChanged(nameof(HasSelectedItems));
|
OnPropertyChanged(nameof(HasSelectedItems));
|
||||||
@@ -284,11 +285,6 @@ namespace Wino.Mail.ViewModels
|
|||||||
OnPropertyChanged(nameof(IsFolderEmpty));
|
OnPropertyChanged(nameof(IsFolderEmpty));
|
||||||
}
|
}
|
||||||
|
|
||||||
[RelayCommand]
|
|
||||||
public Task ExecuteHoverAction(MailOperationPreperationRequest request) => ExecuteMailOperationAsync(request);
|
|
||||||
|
|
||||||
public Task ExecuteMailOperationAsync(MailOperationPreperationRequest package) => _winoRequestDelegator.ExecuteAsync(package);
|
|
||||||
|
|
||||||
protected override void OnDispatcherAssigned()
|
protected override void OnDispatcherAssigned()
|
||||||
{
|
{
|
||||||
base.OnDispatcherAssigned();
|
base.OnDispatcherAssigned();
|
||||||
@@ -391,6 +387,9 @@ namespace Wino.Mail.ViewModels
|
|||||||
|
|
||||||
#region Commands
|
#region Commands
|
||||||
|
|
||||||
|
[RelayCommand]
|
||||||
|
public Task ExecuteHoverAction(MailOperationPreperationRequest request) => ExecuteMailOperationAsync(request);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes the requested mail operation for currently selected items.
|
/// Executes the requested mail operation for currently selected items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -543,6 +542,8 @@ namespace Wino.Mail.ViewModels
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
public Task ExecuteMailOperationAsync(MailOperationPreperationRequest package) => _winoRequestDelegator.ExecuteAsync(package);
|
||||||
|
|
||||||
public IEnumerable<MailItemViewModel> GetTargetMailItemViewModels(IMailItem clickedItem)
|
public IEnumerable<MailItemViewModel> GetTargetMailItemViewModels(IMailItem clickedItem)
|
||||||
{
|
{
|
||||||
// Threat threads as a whole and include everything in the group. Except single selections outside of the thread.
|
// Threat threads as a whole and include everything in the group. Except single selections outside of the thread.
|
||||||
|
|||||||
Reference in New Issue
Block a user