Canguro.Commands.Forms.SectionsGUI.shapeComboBox_SelectedIndexChanged C# (CSharp) Метод

shapeComboBox_SelectedIndexChanged() приватный Метод

private shapeComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void shapeComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            //if (currentMaterial != null && currentMaterial.DesignProperties is ConcreteDesignProps &&
            //    concreteSections.ContainsKey(shapeComboBox.SelectedItem.ToString()))
            //    currentSection = concreteSections[shapeComboBox.SelectedItem.ToString()];
            //else if (currentMaterial != null && currentMaterial.DesignProperties is SteelDesignProps &&
            //    steelSections.ContainsKey(shapeComboBox.SelectedItem.ToString()))
            //    currentSection = steelSections[shapeComboBox.SelectedItem.ToString()];

            //if (allSections.ContainsKey(shapeComboBox.SelectedItem.ToString()))
            //    currentSection = allSections[shapeComboBox.SelectedItem.ToString()];
            //if (currentMaterial != null && currentSection != null)
            //    currentSection.Material = currentMaterial;
            //else if (currentSection != null)
            //    currentMaterial = currentSection.Material;
        }