Exemplo n.º 1
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            int    Numrd;
            Random rd = new Random();

            Numrd = rd.Next(1, 4);//biến Numrd sẽ nhận có giá trị ngẫu nhiên trong khoảng 1 đến 10
            if (Numrd == 1)
            {
                Duongthang fr = new Duongthang();
                fr.ShowDialog();
            }
            if (Numrd == 2)
            {
                Duongtron fr = new Duongtron();
                fr.ShowDialog();
            }
            if (Numrd == 3)
            {
                DuongElip fr = new DuongElip();
                fr.ShowDialog();
            }
            if (Numrd == 4)
            {
                Thuoctinhhinhhoc fr = new Thuoctinhhinhhoc();
                fr.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void navButton4_ElementClick(object sender, NavElementEventArgs e)
        {
            DuongElip fr = new DuongElip();

            fr.ShowDialog();
        }
Exemplo n.º 3
0
        private void tileItem2_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            DuongElip fr = new DuongElip();

            fr.ShowDialog();
        }