예제 #1
0
        private PaneList GetPaneList(PaneBase pane)
        {
            // For a single GraphPane, create a PaneList to contain it
            // Otherwise, just use the paneList from the MasterPane
            PaneList paneList;

            if (pane is GraphPane)
            {
                paneList = new PaneList();
                paneList.Add((GraphPane)pane);
            }
            else
            {
                paneList = ((MasterPane)pane).PaneList;
            }

            return(paneList);
        }
예제 #2
0
		private PaneList GetPaneList( PaneBase pane )
		{
			// For a single GraphPane, create a PaneList to contain it
			// Otherwise, just use the paneList from the MasterPane
			PaneList paneList;

			if ( pane is GraphPane )
			{
				paneList = new PaneList();
				paneList.Add( (GraphPane)pane );
			}
			else
				paneList = ( (MasterPane)pane ).PaneList;

			return paneList;
		}
예제 #3
0
 /// <summary>
 /// Add a <see cref="GraphPane"/> object to the <see cref="PaneList"/> collection at the end of the list.
 /// </summary>
 /// <param name="pane">A reference to the <see cref="GraphPane"/> object to
 /// be added</param>
 /// <seealso cref="IList.Add"/>
 public void Add(GraphPane pane)
 {
     paneList.Add(pane);
 }