private void RemovePendingOutputAction(PendingOutput item) { if (PendingOutputs.Remove(item)) { item.Changed -= PendingOutput_Changed; RecalculateCreateTransaction(); } }
private void RemovePendingOutput(PendingOutput item) { if (PendingOutputs.Remove(item)) { item.Changed -= PendingOutput_Changed; if (PendingOutputs.Count == 0) { AddPendingOutput(); } RecalculateTransaction(); } }
private async void RemovePendingOutput(PendingOutput item) { if (PendingOutputs.Remove(item)) { item.Changed -= PendingOutput_Changed; if (PendingOutputs.Count == 0) { AddPendingOutput(); } try { await RecalculatePendingTransaction(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } } }