Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                handler.Dispose();

                Children.CollectionChanged -= Children_CollectionChanged;
                Children.ForEach(x => x.Dispose());
                this.Remove();

                AutocompleteAll.InputEnded             -= Autocomplete_InputEnded;
                AutocompleteAny.InputEnded             -= Autocomplete_InputEnded;
                AutocompleteNot.InputEnded             -= Autocomplete_InputEnded;
                AutocompleteAll.CHiosChanged           -= Autocomplete_CHiosChanged;
                AutocompleteAny.CHiosChanged           -= Autocomplete_CHiosChanged;
                AutocompleteNot.CHiosChanged           -= Autocomplete_CHiosChanged;
                AutocompleteAll.Tags.CollectionChanged -= Tags_CollectionChanged;
                AutocompleteAny.Tags.CollectionChanged -= Tags_CollectionChanged;
                AutocompleteNot.Tags.CollectionChanged -= Tags_CollectionChanged;
                AutocompleteAll.PropertyChanged        -= Autocomplete_PropertyChanged;
                AutocompleteAny.PropertyChanged        -= Autocomplete_PropertyChanged;
                AutocompleteNot.PropertyChanged        -= Autocomplete_PropertyChanged;
                AutocompleteAll.Dispose();
                AutocompleteAny.Dispose();
                AutocompleteNot.Dispose();
                if (_categories != null)
                {
                    _categories.Clear();
                }
            }
            base.Dispose(disposing);
        }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         handler.Dispose();
     }
     base.Dispose(disposing);
 }
Exemplo n.º 3
0
        public void SdfDatabaseTestCleanup()
        {
            if (sSession != null)
            {
                sSession.Dispose();
            }
            if (clSession != null)
            {
                clSession.Dispose();
            }
            File.Delete(clientSdf);
            File.Delete(serverSdf);

            handler.Dispose();
        }
Exemplo n.º 4
0
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    handler.Dispose();

                    Unload();
                    if (_autocomplete != null)
                    {
                        _autocomplete.Dispose();
                    }
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }
Exemplo n.º 5
0
 public void Dispose(EventMessageHandler handler)
 {
     handler.Dispose();
     Remove(handler);
 }
Exemplo n.º 6
0
 public void Dispose()
 {
     handler.Dispose();
 }