private void button2_Click(object sender, EventArgs e) { Form1.hinh = 4; hinhtron = new HinhTron(); hinhtron.ShowDialog(); if (hinhtron.checkchange == false) { return; } hinhtron.ht.Midpoint_htron_dut(this.JpnLuoiGiaoDien.CreateGraphics()); labelChange(); }
private void button2_Click(object sender, EventArgs e) { xoahinh(); Form1.hinh = 4; hinhtron = new HinhTron(); if (hinhtron.ShowDialog() == DialogResult.Cancel) { Form1.hinh = -1; } if (hinhtron.checkchange == false) { return; } hinhtron.ht.Midpoint_htron(this.JpnLuoiGiaoDien.CreateGraphics(), color); labelChange(); }