public void OnResult(GoldfingerResult result) { _activity.OnResult(result, (value) => { _activity.editText.Text = value; }); }
public void OnResult(GoldfingerResult result) { _activity.OnResult(result, (value) => { _activity.editText.Text = value; _activity.decryptButton.Enabled = true; }); }
public void OnResult(GoldfingerResult result, Action <string> success) { System.Diagnostics.Debug.WriteLine(GetString(Resource.String.status, result.Type(), result.Reason(), result.Value(), result.Message())); var type = result.Type(); if (type == GoldfingerType.Success) { cancelButton.Enabled = false; success?.Invoke(result.Value()); } else if (type == GoldfingerType.Info) { } else if (type == GoldfingerType.Error) { cancelButton.Enabled = false; } }
public void OnResult(GoldfingerResult result) { _activity.OnResult(result, null); }