예제 #1
0
        private void btnOpenR_Click(object sender, EventArgs e)
        {
            Random rnd1  = new Random();
            int    nMode = rnd1.Next(1, 5);

            switch (nMode)
            {
            case 1:
                fSub1 _dlg1 = new fSub1();
                _dlg1.ShowDialog();
                break;

            case 2:
                fSub2 _dlg2 = new fSub2();
                _dlg2.ShowDialog();
                break;

            case 3:
                fSub3 _dlg3 = new fSub3();
                _dlg3.ShowDialog();
                break;

            default:
                fSub4 _dlg4 = new fSub4();
                _dlg4.ShowDialog();
                break;
            }
        }
예제 #2
0
        private void btnOpen3_Click(object sender, EventArgs e)
        {
            fSub3 _dlg = new fSub3();

            _dlg.ShowDialog();
        }