private void HinhLapPhuongProperties_PropertyChanged(object sender, PropertyChangedEventArgs e) { string[] str = e.PropertyName.Split(','); int x = Int16.Parse(str[0]), y = Int16.Parse(str[1]), z = Int16.Parse(str[2]), chieuDai = Int16.Parse(str[3]); hinhLapPhuong = new HinhLapPhuong(x, y, z, chieuDai); picb_3DArea.Refresh(); hinhLapPhuong.Draw(picb_3DArea.CreateGraphics()); }
private void Picb_3DArea_Paint(object sender, PaintEventArgs e) { VeLuoi3D(e.Graphics); if (hinhCauProperties.Visible == true) { hinhCau.Draw(e.Graphics); hinhCauProperties.Dinh = hinhCau.TamDay; } if (hinhLapPhuongProperties.Visible == true) { hinhLapPhuong.Draw(e.Graphics); hinhLapPhuongProperties.Dinh = hinhLapPhuong.Dinh; } }