public override void EditProperties()
        {
            frmPropertiesLight EditLight = new frmPropertiesLight(this);

            EditLight.ShowDialog();

            if (EditLight.mbOkWasPressed)
            {
                msName           = EditLight.objNameText.Text;
                mbActive         = EditLight.objActiveBox.SelectedIndex == 1?true:false;
                mfSpecular       = (float)Convert.ToDouble(EditLight.objSpecularText.Text);
                mfRadius         = (float)Convert.ToDouble(EditLight.objRadiusText.Text);
                mColor           = EditLight.objColorPanel.BackColor;
                mfZ              = (float)Convert.ToDouble(EditLight.objZText.Text);
                mbAffectMaterial = EditLight.objMaterialBox.SelectedIndex == 1?true:false;
                mbCastShadows    = EditLight.objShadowBox.SelectedIndex == 1?true:false;
            }

            EditLight.Dispose();
        }
Esempio n. 2
0
		public override void EditProperties()
		{
			frmPropertiesLight EditLight = new frmPropertiesLight(this);
			
			EditLight.ShowDialog();

			if(EditLight.mbOkWasPressed)
			{
				msName = EditLight.objNameText.Text;
				mbActive = EditLight.objActiveBox.SelectedIndex==1?true:false;
				mfSpecular = (float)Convert.ToDouble(EditLight.objSpecularText.Text);
				mfRadius = (float)Convert.ToDouble(EditLight.objRadiusText.Text);
				mColor = EditLight.objColorPanel.BackColor;
				mfZ = (float)Convert.ToDouble(EditLight.objZText.Text);
				mbAffectMaterial = EditLight.objMaterialBox.SelectedIndex==1?true:false;
				mbCastShadows = EditLight.objShadowBox.SelectedIndex==1?true:false;
			}
			
			EditLight.Dispose();
		}