1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-08 03:23:23 +00:00

view page login info with copy buttons

This commit is contained in:
Kyle Spearrin
2019-04-26 00:26:09 -04:00
parent 0625f313dc
commit baf77eb3a3
9 changed files with 350 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ namespace Bit.Core.Utilities
public event PropertyChangedEventHandler PropertyChanged;
protected bool SetProperty<T>(ref T backingStore, T value, Action onChanged = null,
[CallerMemberName]string propertyName = "")
[CallerMemberName]string propertyName = "", string[] additionalPropertyNames = null)
{
if(EqualityComparer<T>.Default.Equals(backingStore, value))
{
@@ -19,6 +19,13 @@ namespace Bit.Core.Utilities
backingStore = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
if(PropertyChanged != null && additionalPropertyNames != null)
{
foreach(var prop in additionalPropertyNames)
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs(prop));
}
}
onChanged?.Invoke();
return true;
}