Exemplo n.º 1
0
        public async Task UndoChanges()
        {
            // Zurücksetzen aller Änderungen wenn Eingaben ungültig und Page verlassen wird
            Source origionalSource = await Resolver.Resolve <ISourceService>().GetAsync(Source.Id);

            if (origionalSource != null)
            {
                Source = origionalSource;
                OnSourceChanged?.Invoke(this, Source);
            }
        }
 private void SetSourceValue(long value)
 {
     value       &= ~Source.ExcludeMask;
     Source.Value = (Enum)Enum.Parse(Type, value.ToString());
     OnSourceChanged?.Invoke(Source.Name);
 }