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
        public frm_Main()
        {
            InitializeComponent();

            hinhCau                   = new HinhCau(0, 0, 0, 1);
            hinhCauProperties         = new HinhCauProperties();
            hinhCauProperties.Visible = false;

            hinhLapPhuong                   = new HinhLapPhuong(0, 0, 0, 0);
            hinhLapPhuongProperties         = new HinhLapPhuongProperties();
            hinhLapPhuongProperties.Visible = false;

            //2D mode is startup;
            Setup_Toolbar(Globals._Mode_current);
            picb_2DArea.Dock = picb_3DArea.Dock = DockStyle.Fill;

            Setup_ToolTips();
            flag_rocket = false;
        }