Exemple #1
0
        /// <summary>
        /// Adds the specified WindowDetail object to the collection.
        /// </summary>
        /// <param name="value">The WindowDetail object to add to the collection.</param>
        /// <returns>The WindowDetail object added to the collection.</returns>
        public WindowDetail Add(WindowDetail value)
        {
            // Use base class to process actual collection operation
            base.List.Add(value as object);

            return(value);
        }
Exemple #2
0
        private void OnDetailRemoving(int index, object value)
        {
            WindowDetail wd = value as WindowDetail;

            // Inform object it no longer has a parent
            wd.ParentWindow = null;

            // Inform object that it is no longer in a Zone
            wd.ParentZone = null;
        }
Exemple #3
0
        private void OnDetailInserted(int index, object value)
        {
            WindowDetail wd = value as WindowDetail;

            // Inform object we are the new parent
            wd.ParentWindow = this;

            // Inform object that it is in a Zone
            wd.ParentZone = _parentZone;
        }
Exemple #4
0
 /// <summary>
 /// Process a change in content detail focus.
 /// </summary>
 /// <param name="wd">WindowDetail instance.</param>
 public virtual void WindowDetailLostFocus(WindowDetail wd)
 {
     NotifyContentLostFocus();
 }
Exemple #5
0
 /// <summary>
 /// Determines whether a WindowDetail is in the collection.
 /// </summary>
 /// <param name="value">The WindowDetail to locate in the collection.</param>
 /// <returns>true if item is found in the collection; otherwise, false.</returns>
 public bool Contains(WindowDetail value)
 {
     // Use base class to process actual collection operation
     return(base.List.Contains(value as object));
 }
Exemple #6
0
 /// <summary>
 /// Inserts a WindowDetail instance into the collection at the specified location.
 /// </summary>
 /// <param name="index">The location in the collection where you want to add the WindowDetail.</param>
 /// <param name="value">The WindowDetail object to insert.</param>
 public void Insert(int index, WindowDetail value)
 {
     // Use base class to process actual collection operation
     base.List.Insert(index, value as object);
 }
Exemple #7
0
 /// <summary>
 /// Removes a WindowDetail from the collection.
 /// </summary>
 /// <param name="value">A WindowDetail to remove from the collection.</param>
 public void Remove(WindowDetail value)
 {
     // Use base class to process actual collection operation
     base.List.Remove(value as object);
 }
Exemple #8
0
 /// <summary>
 /// Returns the index of the first occurrence of the given WindowDetail.
 /// </summary>
 /// <param name="value">The WindowDetail to locate.</param>
 /// <returns>Index of object; otherwise -1</returns>
 public int IndexOf(WindowDetail value)
 {
     // Find the 0 based index of the requested entry
     return(base.List.IndexOf(value));
 }
 /// <summary>
 /// Process a change in content detail focus.
 /// </summary>
 /// <param name="wd">WindowDetail instance.</param>
 public override void WindowDetailGotFocus(WindowDetail wd)
 {
     // Transfer focus from WindowDetail to the TabControl
     _tabControl.Focus();
 }