public void Dispose()
 {
     _depText.Dispose();
     _depImageIndex.Dispose();
     _depNodes.Dispose();
     _depRecursive.Dispose();
 }
Esempio n. 2
0
 /// <summary>
 /// Unregister idle-time updates for the control.
 /// </summary>
 /// <param name="e">unused</param>
 protected override void OnHandleDestroyed(EventArgs e)
 {
     // Unregister idle-time updates.
     Application.Idle -= new EventHandler(Application_Idle);
     _depEnabled.Dispose();
     base.OnHandleDestroyed(e);
 }
Esempio n. 3
0
 public void Dispose()
 {
     if (_form != null)
     {
         _form.Dispose();
     }
     _depExists.Dispose();
 }
 public void Dispose()
 {
     foreach (ObjectProperty property in _properties)
     {
         property.Dispose();
     }
     _depNodes.Dispose();
     _disposed = true;
 }
 /// <summary>
 /// Unregister idle-time updates for the control.
 /// </summary>
 /// <param name="e">unused</param>
 protected override void OnHandleDestroyed(EventArgs e)
 {
     // Unregister idle-time updates.
     Application.Idle -= new EventHandler(Application_Idle);
     _depEnabled.Dispose();
     _depItems.Dispose();
     _depItemCheckState.Dispose();
     foreach (CheckedListBoxItem item in base.Items)
     {
         item.Dispose();
     }
     base.OnHandleDestroyed(e);
 }
Esempio n. 6
0
 public override void Dispose()
 {
     foreach (IObjectInstance child in _children)
     {
         ObjectInstance.Tree.RemoveKey(child.WrappedObject);
         child.Dispose();
     }
     using (NotificationGate.BeginOutbound())
     {
         ObjectInstance.ClearValue(ClassProperty.DependencyProperty);
     }
     _depCollection.Dispose();
 }
 public override void Dispose()
 {
     if (_child != null)
     {
         ObjectInstance.Tree.RemoveKey(_child.WrappedObject);
         _child.Dispose();
     }
     using (NotificationGate.BeginOutbound())
     {
         ObjectInstance.ClearValue(ClassProperty.DependencyProperty);
     }
     _depProperty.Dispose();
 }
Esempio n. 8
0
 /// <summary>
 /// Unregister idle-time updates for the control.
 /// </summary>
 /// <param name="e">unused</param>
 protected override void OnHandleDestroyed(EventArgs e)
 {
     // Unregister idle-time updates.
     Application.Idle -= new EventHandler(Application_Idle);
     _depEnabled.Dispose();
     _depColumns.Dispose();
     _depItems.Dispose();
     _depItemValue.Dispose();
     foreach (DependentDataRow dependentDataRow in _rows)
     {
         dependentDataRow.Dispose();
     }
     base.OnHandleDestroyed(e);
 }
Esempio n. 9
0
 public void Dispose()
 {
     _depValue.Dispose();
     using (_updateController.BeginUpdating())
     {
         if (_dataRow != null)
         {
             int rowIndex = _table.Rows.IndexOf(_dataRow);
             if (rowIndex >= 0)
             {
                 _table.Rows.RemoveAt(rowIndex);
             }
         }
     }
 }
Esempio n. 10
0
        /// <summary>
        /// Unregister idle-time updates for the control.
        /// </summary>
        /// <param name="e">unused</param>
        protected override void OnHandleDestroyed(EventArgs e)
        {
            // Unregister idle-time updates.
            Application.Idle -= new EventHandler(Application_Idle);
            _depEnabled.Dispose();
            _depNodes.Dispose();
            _depRecursive.Dispose();
            _depSelectedNode.Dispose();

            foreach (DependentTreeNode item in base.Nodes)
            {
                item.Dispose();
            }
            base.OnHandleDestroyed(e);
        }
Esempio n. 11
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                _depUpdate.Dispose();

                // Unregister idle-time updates.
                Application.Idle -= new EventHandler(Application_Idle);
            }
            base.Dispose(disposing);
        }
Esempio n. 12
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                Application.Idle -= new EventHandler(Application_Idle);

                if (components != null)
                {
                    components.Dispose();
                }
                if (_formTable != null)
                {
                    foreach (Entry entry in _formTable.Values)
                    {
                        entry.Dispose();
                    }
                    _formTable = null;
                }
                _depForms.Dispose();
            }
            base.Dispose(disposing);
        }
Esempio n. 13
0
 public void Dispose()
 {
     _depText.Dispose();
 }
Esempio n. 14
0
 public void Dispose()
 {
     _depErrorText.Dispose();
 }
 public void Dispose()
 {
     _depText.Dispose();
     _depCheckState.Dispose();
 }
Esempio n. 16
0
 public void Dispose()
 {
     _depText.Dispose();
     _depSelected.Dispose();
 }