Пример #1
0
        private void AddLightToDropDown(int ID, string LightType)
        {
            // code to add new light to light drop down list
            var sliToAdd = new ShapeListItem(ID, LightType);

            //Add object
            cbPointLights.Items.Add(sliToAdd);
            cbPointLights.SelectedIndex = cbPointLights.Items.Count - 1;
        }
        /// <summary>
        ///     Adds a new light to the shape list combo box
        /// </summary>
        public void AddToLightList(string ShapeDesc, int ID)
        {
            //update light count
            UpdateLightCount();

            //create new object, set ID = light count, set description to shape type
            var sliToAdd = new ShapeListItem(ID, ShapeDesc);

            //Add object
            cbPointLights.Items.Add(sliToAdd);
            cbPointLights.SelectedIndex = cbPointLights.Items.Count - 1;
        }
Пример #3
0
        /// <summary>
        ///     Adds a new light to the shape list combo box
        /// </summary>
        public void AddToLightList(string ShapeDesc, int ID)
        {
            //update light count
            UpdateLightCount();

            //create new object, set ID = light count, set description to shape type
            var sliToAdd = new ShapeListItem(ID, ShapeDesc);

            //Add object
            cbPointLights.Items.Add(sliToAdd);
            cbPointLights.SelectedIndex = cbPointLights.Items.Count - 1;
        }
Пример #4
0
        /// <summary>
        ///     Adds a new shape to the shape list combo box
        /// </summary>
        public void AddToShapeList(string ShapeDesc, int ID)
        {
            //update shape count
            UpdateShapeCount();

            //create new object, set ID = shape count, set description to shape type
            var sliToAdd = new ShapeListItem(ID, ShapeDesc);

            //Add object
            cboShapeList.Items.Add(sliToAdd);
            cboShapeList.SelectedIndex = cboShapeList.Items.Count - 1;
            txtRename.Text             = _renderer.Meshes[cboShapeList.SelectedIndex].Name;
        }
        /// <summary>
        ///     Adds a new shape to the shape list combo box
        /// </summary>
        public void AddToShapeList(string ShapeDesc, int ID)
        {
            //update shape count
            UpdateShapeCount();

            //create new object, set ID = shape count, set description to shape type
            var sliToAdd = new ShapeListItem(ID, ShapeDesc);

            //Add object
            cboShapeList.Items.Add(sliToAdd);
            cboShapeList.SelectedIndex = cboShapeList.Items.Count - 1;
            txtRename.Text = _renderer.Meshes[cboShapeList.SelectedIndex].Name;
        }
        private void AddLightToDropDown(int ID, string LightType)
        {
            // code to add new light to light drop down list
            var sliToAdd = new ShapeListItem(ID, LightType);

            //Add object
            cbPointLights.Items.Add(sliToAdd);
            cbPointLights.SelectedIndex = cbPointLights.Items.Count - 1;
        }