Beispiel #1
0
		/// <summary>
		/// Put a pane into the visible pane ordering at the specified index
		/// -- Might throw a System.ArgumentOutOfRangeException
		/// </summary>
		/// <param name="pane">a TabStop representing the specified pane</param>
		/// <param name="index">the index to insert the pane at</param>
		public static void ReorderPane (RemovablePane pane, int index) 
		{
			// Do not add WaitForHolodeck, since this method might be called before the Holodeck process started

			RemovePaneFromOrdering (pane);
			paneOrdering.Insert (index, pane);
		}
Beispiel #2
0
		/// <summary>
		/// Remove a pane from the visible pane ordering
		/// </summary>
		/// <param name="pane">a TabStop representing the pane to be removed</param>
		public static void RemovePaneFromOrdering (RemovablePane pane) 
		{
			// Do not add WaitForHolodeck, since this method might be called before the Holodeck process started

			int position = 0;
			for (position = 0; position < paneOrdering.Count; position++) 
			{
				if ((RemovablePane) paneOrdering[position] == pane) 
				{
					break;
				}
			}
			if (position < paneOrdering.Count) 
			{
				paneOrdering.RemoveAt (position);
			}
		}
Beispiel #3
0
        /// <summary>
        /// Put a pane into the visible pane ordering at the specified index
        /// -- Might throw a System.ArgumentOutOfRangeException
        /// </summary>
        /// <param name="pane">a TabStop representing the specified pane</param>
        /// <param name="index">the index to insert the pane at</param>
        public static void ReorderPane(RemovablePane pane, int index)
        {
            // Do not add WaitForHolodeck, since this method might be called before the Holodeck process started

            RemovePaneFromOrdering (pane);
            paneOrdering.Insert (index, pane);
        }
Beispiel #4
0
        /// <summary>
        /// Remove a pane from the visible pane ordering
        /// </summary>
        /// <param name="pane">a TabStop representing the pane to be removed</param>
        public static void RemovePaneFromOrdering(RemovablePane pane)
        {
            // Do not add WaitForHolodeck, since this method might be called before the Holodeck process started

            int position = 0;
            for (position = 0; position < paneOrdering.Count; position++)
            {
                if ((RemovablePane) paneOrdering[position] == pane)
                {
                    break;
                }
            }
            if (position < paneOrdering.Count)
            {
                paneOrdering.RemoveAt (position);
            }
        }
Beispiel #5
0
        /// <summary>
        /// Remove a pane from the visible pane ordering
        /// </summary>
        /// <param name="pane">a TabStop representing the pane to be hidden</param>
        public static void HidePane(RemovablePane pane)
        {
            // Do not add WaitForHolodeck, since this method might be called before the Holodeck process started

            RemovePaneFromOrdering (pane);
        }
Beispiel #6
0
		/// <summary>
		/// Remove a pane from the visible pane ordering
		/// </summary>
		/// <param name="pane">a TabStop representing the pane to be hidden</param>
		public static void HidePane (RemovablePane pane) 
		{
			// Do not add WaitForHolodeck, since this method might be called before the Holodeck process started

			RemovePaneFromOrdering (pane);
		}