Example #1
0
        private void cboSearchingOption_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find AbsorptionCoefficient_Find1;
            HONUS.MaterialDatabase.Form.OneThirdOctaveFind         AbsorptionCoefficient_Find1Detail;

            switch (cboSearchingOption.SelectedItem.ToString())
            {
            case "Absorption coefficient-rigid backing":
                if (rdoOctave.Checked == true)
                {
                    AbsorptionCoefficient_Find1 = new HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find();
                    AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_RB;
                    if (AbsorptionCoefficient_Find1.ShowDialog() == DialogResult.OK)
                    {
                        clsAbsorptionCoefficient_Find_RB = AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1;
                    }
                }
                else
                {
                    AbsorptionCoefficient_Find1Detail = new HONUS.MaterialDatabase.Form.OneThirdOctaveFind();
                    AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_RBDetail;
                    if (AbsorptionCoefficient_Find1Detail.ShowDialog() == DialogResult.OK)
                    {
                        clsAbsorptionCoefficient_Find_RBDetail = AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1;
                    }
                }
                break;

            case "Absorption coefficient-anechoic termination":
                if (rdoOctave.Checked == true)
                {
                    AbsorptionCoefficient_Find1 = new HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find();
                    AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_AT;
                    if (AbsorptionCoefficient_Find1.ShowDialog() == DialogResult.OK)
                    {
                        clsAbsorptionCoefficient_Find_AT = AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1;
                    }
                }
                else
                {
                    AbsorptionCoefficient_Find1Detail = new HONUS.MaterialDatabase.Form.OneThirdOctaveFind();
                    AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_ATDetail;
                    if (AbsorptionCoefficient_Find1Detail.ShowDialog() == DialogResult.OK)
                    {
                        clsAbsorptionCoefficient_Find_ATDetail = AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1;
                    }
                }
                break;

            case "Transmission Loss":
                if (rdoOctave.Checked == true)
                {
                    AbsorptionCoefficient_Find1 = new HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find();
                    AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_TL;
                    AbsorptionCoefficient_Find1.gbAll_Enable(true);
                    if (AbsorptionCoefficient_Find1.ShowDialog() == DialogResult.OK)
                    {
                        clsAbsorptionCoefficient_Find_TL = AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1;
                    }
                }
                else
                {
                    AbsorptionCoefficient_Find1Detail = new HONUS.MaterialDatabase.Form.OneThirdOctaveFind();
                    AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_TLDetail;
                    AbsorptionCoefficient_Find1Detail.gbAll_Enable(true);
                    if (AbsorptionCoefficient_Find1Detail.ShowDialog() == DialogResult.OK)
                    {
                        clsAbsorptionCoefficient_Find_TLDetail = AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1;
                    }
                }
                break;

            case "Parameters":
                HONUS.MaterialDatabase.Form.dgParameters_Find dgParameters_Find1 = new HONUS.MaterialDatabase.Form.dgParameters_Find();
                dgParameters_Find1.clsParameters1 = clsParameters1;
                if (dgParameters_Find1.ShowDialog() == DialogResult.OK)
                {
                    clsParameters1 = dgParameters_Find1.clsParameters1;
                }

                break;

            case "MultiLayer":
                if (rdoOctave.Checked == true)
                {
                    HONUS.MaterialDatabase.Form.dgMultiLayer_Find dgMultiLayer_Find1 = new HONUS.MaterialDatabase.Form.dgMultiLayer_Find();
                    dgMultiLayer_Find1.MultiLayer_Find1 = clsMultiLayer_Find1;
                    if (dgMultiLayer_Find1.ShowDialog() == DialogResult.OK)
                    {
                        clsMultiLayer_Find1 = dgMultiLayer_Find1.MultiLayer_Find1;
                    }
                }
                else
                {
                    HONUS.MaterialDatabase.Form.dgMultiLayer_Find dgMultiLayer_Find1 = new HONUS.MaterialDatabase.Form.dgMultiLayer_Find();
                    dgMultiLayer_Find1.MultiLayer_Find1 = clsMultiLayer_Find1;
                    if (dgMultiLayer_Find1.ShowDialog() == DialogResult.OK)
                    {
                        clsMultiLayer_Find1 = dgMultiLayer_Find1.MultiLayer_Find1;
                    }
                }
                break;
            }
        }
Example #2
0
        private void cboSearchingOption_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find AbsorptionCoefficient_Find1;
            HONUS.MaterialDatabase.Form.OneThirdOctaveFind AbsorptionCoefficient_Find1Detail;

            switch(cboSearchingOption.SelectedItem.ToString())
            {
                case "Absorption coefficient-rigid backing":
                    if(rdoOctave.Checked == true)
                    {
                        AbsorptionCoefficient_Find1 = new HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find();
                        AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_RB;
                        if(AbsorptionCoefficient_Find1.ShowDialog() == DialogResult.OK)
                        {
                            clsAbsorptionCoefficient_Find_RB = AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1;
                        }
                    }
                    else
                    {
                        AbsorptionCoefficient_Find1Detail = new HONUS.MaterialDatabase.Form.OneThirdOctaveFind();
                        AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_RBDetail;
                        if(AbsorptionCoefficient_Find1Detail.ShowDialog() == DialogResult.OK)
                        {
                            clsAbsorptionCoefficient_Find_RBDetail = AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1;
                        }
                    }
                    break;
                case "Absorption coefficient-anechoic termination":
                    if(rdoOctave.Checked == true)
                    {
                        AbsorptionCoefficient_Find1 = new HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find();
                        AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_AT;
                        if(AbsorptionCoefficient_Find1.ShowDialog() == DialogResult.OK)
                        {
                            clsAbsorptionCoefficient_Find_AT = AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1;
                        }
                    }
                    else
                    {
                        AbsorptionCoefficient_Find1Detail = new HONUS.MaterialDatabase.Form.OneThirdOctaveFind();
                        AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_ATDetail;
                        if(AbsorptionCoefficient_Find1Detail.ShowDialog() == DialogResult.OK)
                        {
                            clsAbsorptionCoefficient_Find_ATDetail = AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1;
                        }
                    }
                    break;
                case "Transmission Loss":
                    if(rdoOctave.Checked == true)
                    {
                        AbsorptionCoefficient_Find1 = new HONUS.MaterialDatabase.Form.AbsorptionCoefficient_Find();
                        AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_TL;
                        AbsorptionCoefficient_Find1.gbAll_Enable(true);
                        if(AbsorptionCoefficient_Find1.ShowDialog() == DialogResult.OK)
                        {
                            clsAbsorptionCoefficient_Find_TL = AbsorptionCoefficient_Find1.clsAbsorptionCoefficient_Find1;
                        }
                    }
                    else
                    {
                        AbsorptionCoefficient_Find1Detail = new HONUS.MaterialDatabase.Form.OneThirdOctaveFind();
                        AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1 = clsAbsorptionCoefficient_Find_TLDetail;
                        AbsorptionCoefficient_Find1Detail.gbAll_Enable(true);
                        if(AbsorptionCoefficient_Find1Detail.ShowDialog() == DialogResult.OK)
                        {
                            clsAbsorptionCoefficient_Find_TLDetail = AbsorptionCoefficient_Find1Detail.clsAbsorptionCoefficient_Find1;
                        }
                    }
                    break;
                case "Parameters":
                    HONUS.MaterialDatabase.Form.dgParameters_Find dgParameters_Find1 = new HONUS.MaterialDatabase.Form.dgParameters_Find();
                    dgParameters_Find1.clsParameters1 = clsParameters1;
                    if(dgParameters_Find1.ShowDialog() == DialogResult.OK)
                    {
                        clsParameters1 = dgParameters_Find1.clsParameters1;
                    }

                    break;
                case "MultiLayer":
                    if(rdoOctave.Checked == true)
                    {
                        HONUS.MaterialDatabase.Form.dgMultiLayer_Find dgMultiLayer_Find1 = new HONUS.MaterialDatabase.Form.dgMultiLayer_Find();
                        dgMultiLayer_Find1.MultiLayer_Find1 = clsMultiLayer_Find1;
                        if(dgMultiLayer_Find1.ShowDialog() == DialogResult.OK)
                        {
                            clsMultiLayer_Find1 = dgMultiLayer_Find1.MultiLayer_Find1;
                        }
                    }
                    else
                    {
                        HONUS.MaterialDatabase.Form.dgMultiLayer_Find dgMultiLayer_Find1 = new HONUS.MaterialDatabase.Form.dgMultiLayer_Find();
                        dgMultiLayer_Find1.MultiLayer_Find1 = clsMultiLayer_Find1;
                        if(dgMultiLayer_Find1.ShowDialog() == DialogResult.OK)
                        {
                            clsMultiLayer_Find1 = dgMultiLayer_Find1.MultiLayer_Find1;
                        }
                    }
                    break;
            }
        }