コード例 #1
0
 public void OnResult(GoldfingerResult result)
 {
     _activity.OnResult(result, (value) =>
     {
         _activity.editText.Text = value;
     });
 }
コード例 #2
0
 public void OnResult(GoldfingerResult result)
 {
     _activity.OnResult(result, (value) =>
     {
         _activity.editText.Text         = value;
         _activity.decryptButton.Enabled = true;
     });
 }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
 public void OnResult(GoldfingerResult result)
 {
     _activity.OnResult(result, null);
 }