Пример #1
0
 ///<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);
 }
Пример #2
0
 ///<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);
 }
Пример #3
0
 ///<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);
 }
Пример #4
0
        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);
        }
Пример #5
0
 ///<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);
 }
Пример #6
0
 public void Dispose()
 {
     Pledges.Dispose();
 }