Ejemplo n.º 1
0
        /// <summary>
        /// Override this to free resources
        /// </summary>
        /// <param name="disposing">true is Dispose() has been called</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                // Free any other managed objects here.
                //
            }

            // Free any unmanaged objects here.
            //
            foreach (UIButton button in this)
            {
                if (subscribeCount > 0)
                {
                    button.ButtonEvent -= new UIObjectButtonEventHandler(OnButtonEvent);
                }
                button.Dispose();
            }

            InternalDictionary.Clear();

            disposed = true;
        }
Ejemplo n.º 2
0
        public void Clear()
        {
            if (InternalDictionary.Count > 0)
            {
                InternalDictionary.Clear();

                OnPropertyChanged();
                CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
            }
        }
Ejemplo n.º 3
0
        public virtual void Dispose()
        {
            ViewTimeOut.Dispose();

            foreach (UIViewController view in this)
            {
                view.VisibilityChange -= ViewController_VisibilityChange;
                view.Dispose();
            }

            InternalDictionary.Clear();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Removes all objects from this set.
 /// </summary>
 public override void Clear()
 {
     InternalDictionary.Clear();
 }
 /// <summary>
 ///		Limpia los elementos
 /// </summary>
 public void Clear()
 {
     InternalDictionary.Clear();
 }
Ejemplo n.º 6
0
 void ICollection <KeyValuePair <EK, EV> > .Clear()
 {
     InternalDictionary.Clear();
 }