Exemple #1
0
        public static String GetString(this StellarOperationResult result)
        {
            string message = null;

            switch (result)
            {
            case StellarOperationResult.FailSendBuls:
                message = AppResources.FailSendBuls;
                break;

            case StellarOperationResult.FailCreateAccount:
                message = AppResources.FailCreateAccount;
                break;

            case StellarOperationResult.FailSubmitCreateAccount:
                message = AppResources.FailSubmitCreateAccount;
                break;

            case StellarOperationResult.FailAddTrust:
                message = AppResources.FailAddTrust;
                break;

            case StellarOperationResult.LowBULsLauncher:
                message = AppResources.LowBULsLauncher;
                break;

            case StellarOperationResult.LowBULsCourier:
                message = AppResources.LowBULsCourier;
                break;

            case StellarOperationResult.FailedLaunchPackage:
                message = AppResources.FailedLaunchPackage;
                break;

            case StellarOperationResult.FaileSubmitOptions:
                message = AppResources.FaileSubmitOptions;
                break;

            case StellarOperationResult.IncositentBalance:
                message = AppResources.IncositentBalance;
                break;

            case StellarOperationResult.FailAcceptPackage:
                message = AppResources.FailAcceptPackage;
                break;

            case StellarOperationResult.FailSendCollateral:
                message = AppResources.FailSendCollateral;
                break;

            default:
                message = AppResources.UnknownError;
                break;
            }

            return(message);
        }
Exemple #2
0
        protected void ShowError(StellarOperationResult error, bool lengthLong = false)
        {
            var message = StellarOperationResultMethods.GetString(error);

            ShowErrorMessage(message);
        }