private void CtrlEllipCylinderEntityParamPage_Load(object sender, EventArgs e) { geoEllipCylinderEntity = m_Geometry as GSOGeoEllipCylinderEntity; if (geoEllipCylinderEntity != null) { textBoxXRadius.Text = geoEllipCylinderEntity.XRadius.ToString(); textBoxYRadius.Text = geoEllipCylinderEntity.YRadius.ToString(); textBoxLength.Text = geoEllipCylinderEntity.Length.ToString(); textBoxSlices.Text = geoEllipCylinderEntity.Slices.ToString(); } }
private void ParamChanged() { geoEllipCylinderEntity = m_Geometry as GSOGeoEllipCylinderEntity; if (geoEllipCylinderEntity != null) { try { geoEllipCylinderEntity.XRadius = Convert.ToDouble(textBoxXRadius.Text); geoEllipCylinderEntity.YRadius = Convert.ToDouble(textBoxYRadius.Text); geoEllipCylinderEntity.Length = Convert.ToDouble(textBoxLength.Text); geoEllipCylinderEntity.Slices = Convert.ToInt32(textBoxSlices.Text); if (m_GlobeControl != null) { m_GlobeControl.Refresh(); } } catch (System.Exception exp) { Log.PublishTxt(exp); } } }