Example #1
0
        /// <summary>
        /// Create a List of ColumnMenuItems for ComboBox based on an array of column hvos.
        /// </summary>
        /// <param name="colArray"></param>
        internal void CollectColumnsToCombo(ICmPossibility[] colArray)
        {
            var ccols = colArray.Length;
            var cols  = new ColumnMenuItem[ccols];

            for (var i = 0; i < ccols; i++)
            {
                cols[i] = new ColumnMenuItem(colArray[i]);
            }
            SentElem.ComboCols = cols;
        }
Example #2
0
        /// <summary>
        /// Create a List of ColumnMenuItems for ComboBox based on an array of column hvos.
        /// </summary>
        /// <param name="hvoArray"></param>
        internal void CollectColumnsToCombo(int[] hvoArray)
        {
            int ccols = hvoArray.Length;

            ColumnMenuItem[] cols = new ColumnMenuItem[ccols];
            for (int i = 0; i < ccols; i++)
            {
                cols[i] = new ColumnMenuItem(CmPossibility.CreateFromDBObject(Cache,
                                                                              hvoArray[i]));
            }
            SentElem.ComboCols = cols;
        }
Example #3
0
		/// <summary>
		/// Create a List of ColumnMenuItems for ComboBox based on an array of column hvos.
		/// </summary>
		/// <param name="hvoArray"></param>
		internal void CollectColumnsToCombo(int[] hvoArray)
		{
			int ccols = hvoArray.Length;
			ColumnMenuItem[] cols = new ColumnMenuItem[ccols];
			for (int i = 0; i < ccols; i++)
				cols[i] = new ColumnMenuItem(CmPossibility.CreateFromDBObject(Cache,
					hvoArray[i]));
			SentElem.ComboCols = cols;
		}
Example #4
0
		/// <summary>
		/// Sets the dialog combobox for columns according to what the logic filled in the parameter object.
		/// Also selects the first column as selected initially, since we have no idea what might be wanted.
		/// </summary>
		/// <param name="items"></param>
		internal void SetColumns(ColumnMenuItem[] items)
		{
			m_columnsCombo.Items.Clear();
			if (items.Length > 0)
			{
				m_columnsCombo.Items.AddRange(items);
				SelectedColumn = items[0]; // No way of knowing which column might be wanted, select the first.
			}
		}
Example #5
0
		/// <summary>
		/// Create a List of ColumnMenuItems for ComboBox based on an array of column hvos.
		/// </summary>
		/// <param name="colArray"></param>
		internal void CollectColumnsToCombo(ICmPossibility[] colArray)
		{
			var ccols = colArray.Length;
			var cols = new ColumnMenuItem[ccols];
			for (var i = 0; i < ccols; i++)
				cols[i] = new ColumnMenuItem(colArray[i]);
			SentElem.ComboCols = cols;
		}