///<summary>Releases the unmanaged resources used by the TicketsForm and optionally releases the managed resources.</summary> ///<param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { tickets.Dispose(); if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
///<summary>Releases the unmanaged resources used by the CallListForm and optionally releases the managed resources.</summary> ///<param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { Program.Table <Caller>().RowAdded -= CallersTable_Changed; Program.Table <Caller>().RowRemoved -= CallersTable_Changed; dataSource.Dispose(); if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
///<summary>Releases the unmanaged resources used by the InvitationsForm and optionally releases the managed resources.</summary> ///<param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { if (dataSource != null) { dataSource.Dispose(); } if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { seats.Dispose(); Program.Table <Pledge>().ValueChanged -= Pledge_ValueChanged; Program.Table <SeatingReservation>().RowRemoved -= SeatingReservation_RowChanged; Program.Table <SeatingReservation>().RowAdded -= SeatingReservation_RowChanged; Program.Table <SeatingReservation>().ValueChanged -= SeatingReservation_ValueChanged; if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
///<summary>Releases the unmanaged resources used by the ReminderEmailsForm and optionally releases the managed resources.</summary> ///<param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected override void Dispose(bool disposing) { if (disposing) { if (emailLogRenderer.IsValueCreated) { emailLogRenderer.Value.Dispose(); } if (razor != null) { razor.Dispose(); } if (components != null) { components.Dispose(); } dataSource.Dispose(); } base.Dispose(disposing); }
public void Dispose() { Pledges.Dispose(); }