예제 #1
0
 private void RemovePendingOutputAction(PendingOutput item)
 {
     if (PendingOutputs.Remove(item))
     {
         item.Changed -= PendingOutput_Changed;
         RecalculateCreateTransaction();
     }
 }
예제 #2
0
        private void RemovePendingOutput(PendingOutput item)
        {
            if (PendingOutputs.Remove(item))
            {
                item.Changed -= PendingOutput_Changed;

                if (PendingOutputs.Count == 0)
                {
                    AddPendingOutput();
                }

                RecalculateTransaction();
            }
        }
예제 #3
0
        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");
                }
            }
        }