private void AddPendingOutput() { var pendingOutput = new PendingOutput(); pendingOutput.Changed += PendingOutput_Changed; PendingOutputs.Add(pendingOutput); RecalculateTransaction(); }
private async void AddPendingOutput() { var pendingOutput = new PendingOutput(); pendingOutput.Changed += PendingOutput_Changed; PendingOutputs.Add(pendingOutput); try { await RecalculatePendingTransaction(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } }