src/Lurker.UI/ViewModels/OutgoingbarViewModel.cs
/// <summary>
/// Handles the Elapsed event of the Timer control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="ElapsedEventArgs"/> instance containing the event data.</param>
Handles the Elapsed event of the Timer control.
Handles the Elapsed event of the Timer control .
private void Timer_Elapsed(object sender, ElapsedEventArgs e)
        {
            try
            {
                foreach (var offer in this.Offers.Where(o => !o.Waiting && !o.Active))
                {
                    offer.DelayToClose = offer.DelayToClose - 0.15;
                    if (offer.DelayToClose <= 0)
                    {
                        return;
                    }
                }
            }
            catch (System.InvalidOperationException)
            {
                return;
            }
        }
private void Timer_Elapsed ( object sender , ElapsedEventArgs e ) { try { foreach ( var offer in this . Offers . Where ( o => ! o . Waiting && ! o . Active ) ) { offer . DelayToClose = offer . DelayToClose - 0.15 ; if ( offer . DelayToClose <= 0 ) { return ; } } } catch ( System . InvalidOperationException ) { return ; } }
Handles the Elapsed event of the Timer control.
Handles the Elapsed event of the Timer control .
// An offer has been deleted (Will need to handle this scenario)
sender
object
The source of the event.
The source of the event .
e
ElapsedEventArgs
The  instance containing the event data.
The instance containing the event data .