Exemplo n.º 1
0
 internal void SetRows(ICmIndirectAnnotation[] items)
 {
     // Convert ICmIndirectAnnotations to RowMenuItems
     RowMenuItem[] rows = new RowMenuItem[items.Length];
     for (int i = 0; i < items.Length; i++)
     {
         rows[i] = new RowMenuItem(items[i]);
     }
     m_rowsCombo.Items.Clear();
     m_rowsCombo.Items.AddRange(rows);
 }
Exemplo n.º 2
0
        internal void SetRows(IConstChartRow[] items)
        {
            // Convert ConstChartRows to RowMenuItems
            var rows = new RowMenuItem[items.Length];

            for (var i = 0; i < items.Length; i++)
            {
                rows[i] = new RowMenuItem(items[i]);
            }
            m_rowsCombo.Items.Clear();
            m_rowsCombo.Items.AddRange(rows);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Collect the eligible rows (as passed in by the Chart Logic) into the ComboBox items array.
        /// Returns the number of rows collected.
        /// </summary>
        /// <returns></returns>
        private int CollectRowsToCombo()
        {
            Debug.Assert(SentElem.EligibleRows != null);
            var crows = SentElem.EligibleRows.Length;
            var rows  = new RowMenuItem[crows];

            for (var i = 0; i < crows; i++)
            {
                rows[i] = new RowMenuItem(SentElem.EligibleRows[i]);
            }
            SentElem.ComboRows = rows;
            return(crows);
        }
Exemplo n.º 4
0
		internal void SetRows(ICmIndirectAnnotation[] items)
		{
			// Convert ICmIndirectAnnotations to RowMenuItems
			RowMenuItem[] rows = new RowMenuItem[items.Length];
			for (int i = 0; i < items.Length; i++)
				rows[i] = new RowMenuItem(items[i]);
			m_rowsCombo.Items.Clear();
			m_rowsCombo.Items.AddRange(rows);
		}
Exemplo n.º 5
0
		/// <summary>
		/// Collect the eligible rows (as passed in by the Chart Logic) into the ComboBox items array.
		/// Returns the number of rows collected.
		/// </summary>
		/// <returns></returns>
		private int CollectRowsToCombo()
		{
			Debug.Assert(SentElem.EligibleRows != null);
			int crows = SentElem.EligibleRows.Length;
			RowMenuItem[] rows = new RowMenuItem[crows];
			for (int i = 0; i < crows; i++)
				rows[i] = new RowMenuItem(SentElem.EligibleRows[i]);
			SentElem.ComboRows = rows;
			return crows;
		}
Exemplo n.º 6
0
		internal void SetRows(IConstChartRow[] items)
		{
			// Convert ConstChartRows to RowMenuItems
			var rows = new RowMenuItem[items.Length];
			for (var i = 0; i < items.Length; i++)
				rows[i] = new RowMenuItem(items[i]);
			m_rowsCombo.Items.Clear();
			m_rowsCombo.Items.AddRange(rows);
		}