Beispiel #1
0
        private void btn_dist_uni_Click(object sender, EventArgs e)
        {
            form_ss_uniforme form = new form_ss_uniforme();

            if (form.ShowDialog() != DialogResult.OK)
            {
                this.Dispose();
            }
        }
        private void btn_dist_uni_Click(object sender, EventArgs e)
        {
            switch (tipo)
            {
            case ('a'):
            {
                form_ss_uniforme form = new form_ss_uniforme();
                if (form.ShowDialog() != DialogResult.OK)
                {
                    this.Dispose();
                }
                break;
            }

            case ('b'):
            {
                switch (nro)
                {
                case (0):
                {
                    form_2ss_uniforme form = new form_2ss_uniforme();
                    if (form.ShowDialog() != DialogResult.OK)
                    {
                        this.Dispose();
                    }
                    break;
                }

                case (1):
                {
                    form_3ss_uniforme form = new form_3ss_uniforme();
                    if (form.ShowDialog() != DialogResult.OK)
                    {
                        this.Dispose();
                    }
                    break;
                }

                case (2):
                {
                    form_4ss_uniforme form = new form_4ss_uniforme();
                    if (form.ShowDialog() != DialogResult.OK)
                    {
                        this.Dispose();
                    }
                    break;
                }
                }
                break;
            }

            case ('c'):
            {
                switch (nro)
                {
                case (0):
                {
                    form_2sp_uniforme form = new form_2sp_uniforme();
                    if (form.ShowDialog() != DialogResult.OK)
                    {
                        this.Dispose();
                    }
                    break;
                }

                case (1):
                {
                    form_3sp_uniforme form = new form_3sp_uniforme();
                    if (form.ShowDialog() != DialogResult.OK)
                    {
                        this.Dispose();
                    }
                    break;
                }

                case (2):
                {
                    form_4sp_uniforme form = new form_4sp_uniforme();
                    if (form.ShowDialog() != DialogResult.OK)
                    {
                        this.Dispose();
                    }
                    break;
                }
                }
                break;
            }

            case ('d'):
            {
                form_3spci_uniforme form = new form_3spci_uniforme();
                if (form.ShowDialog() != DialogResult.OK)
                {
                    this.Dispose();
                }
                break;
            }

            default:
                break;
            }
        }