private void dropImageChanged() { GSOGeoFountain geoFountain = m_Geometry as GSOGeoFountain; if (geoFountain != null) { geoFountain.DropImage = textBoxDropImage.Text; if (m_GlobeControl != null) { m_GlobeControl.Refresh(); } } }
private void dropColorChanged() { GSOGeoFountain geoFountain = m_Geometry as GSOGeoFountain; if (geoFountain != null) { geoFountain.DropColor = Color.FromArgb(Convert.ToByte(numericUpDownDropOpaque.Value), pictureBoxDropColor.BackColor); if (m_GlobeControl != null) { m_GlobeControl.Refresh(); } } }
private void CtrlFountainParamPage_Load(object sender, EventArgs e) { GSOGeoFountain geoFountain = m_Geometry as GSOGeoFountain; if (geoFountain != null) { textBoxSteps.Text = geoFountain.Steps.ToString(); textBoxStepRays.Text = geoFountain.RaysPerStep.ToString(); textBoxRayDrops.Text = geoFountain.DropsPerRay.ToString(); textBoxDropSize.Text = geoFountain.DropSize.ToString(); textBoxAngleOfDeepestStep.Text = geoFountain.AngleOfDeepestStep.ToString(); textBoxAccFactor.Text = geoFountain.AccFactor.ToString(); textBoxDropImage.Text = geoFountain.DropImage; pictureBoxDropColor.BackColor = geoFountain.DropColor; numericUpDownDropOpaque.Value = geoFountain.DropColor.A; } }
private void textBoxStepRays_TextChanged(object sender, EventArgs e) { GSOGeoFountain geoFountain = m_Geometry as GSOGeoFountain; if (geoFountain != null) { try { geoFountain.RaysPerStep = Convert.ToInt32(textBoxStepRays.Text); if (m_GlobeControl != null) { m_GlobeControl.Refresh(); } } catch (System.Exception exp) { Log.PublishTxt(exp); } } }
private void textBoxDropSize_TextChanged(object sender, EventArgs e) { GSOGeoFountain geoFountain = m_Geometry as GSOGeoFountain; if (geoFountain != null) { try { geoFountain.DropSize = Convert.ToDouble(textBoxDropSize.Text); if (m_GlobeControl != null) { m_GlobeControl.Refresh(); } } catch (System.Exception exp) { Log.PublishTxt(exp); } } }