private void HinhCauProperties_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]), banKinhDay = Int16.Parse(str[3]); hinhCau = new HinhCau(x, y, z, banKinhDay); picb_3DArea.Refresh(); hinhCau.Draw(picb_3DArea.CreateGraphics()); }
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; }