Exemple #1
0
        public Formdtr(htron k)
        {
            //  groupBox1.Text = "Duong tron "+i.ToString();
            InitializeComponent();
            dtr = new htron(k.bkinh, k.tam, k.mau);
            Point d1 = s.toado1(k.tam.X, k.tam.Y);

            textBox1.Text = d1.X.ToString();
            textBox2.Text = d1.Y.ToString();
            int bk = (int)(k.bkinh / 5);

            textBox3.Text      = bk.ToString();
            textBox4.ForeColor = k.mau;
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            int x1 = Convert.ToInt16(textBox1.Text);
            int y1 = Convert.ToInt16(textBox2.Text);
            int x2 = Convert.ToInt16(textBox3.Text);

            if (radioButton1.Checked == true)
            {
                xoa = 1; chon = 0;
            }
            if (chon != 0 && mauto == textBox4.ForeColor)
            {
                MessageBox.Show("Mau to da bi trung mau duong ve");
                return;
            }
            dtr = new htron(x2 * 5, s.toado2(x1, y1), textBox4.ForeColor);
            this.Close();
        }
Exemple #3
0
        public htron getpro()
        {
            htron item = new htron(bkinh, tam, mau);

            return(item);
        }