private void RecalculateCreateTransaction() { if (PendingOutputs.Count > 0 && PendingOutputs.All(x => x.IsValid())) { EstimatedFee = 0; EstimatedRemainingBalance = 0; FinishCreateTransaction.Executable = true; } else { FinishCreateTransaction.Executable = false; } }
private void RecalculateTransaction() { if (PendingOutputs.Count > 0 && PendingOutputs.All(x => x.IsValid)) { // TODO: calculate estimated fee EstimatedFee = 0; EstimatedRemainingBalance = 0; // TODO: only make executable if we know the transaction can be created FinishCreateTransaction.Executable = true; } else { EstimatedFee = null; EstimatedRemainingBalance = null; FinishCreateTransaction.Executable = false; } }