Exemple #1
0
        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());
        }
Exemple #2
0
        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;
            }
        }