public override void EditProperties()
        {
            frmPropertiesParticle EditParticle = new frmPropertiesParticle(this);

            EditParticle.ShowDialog();

            if (EditParticle.mbOkWasPressed)
            {
                msName   = EditParticle.objNameText.Text;
                mbActive = EditParticle.objActiveBox.SelectedIndex == 1?true:false;

                mfSizeX = (float)Convert.ToDouble(EditParticle.objXText.Text);
                mfSizeY = (float)Convert.ToDouble(EditParticle.objYText.Text);
                mfSizeZ = (float)Convert.ToDouble(EditParticle.objZText.Text);

                mfZ = (float)Convert.ToDouble(EditParticle.objPosZText.Text);

                mlTypeNum = EditParticle.objTypeBox.SelectedIndex;
            }

            EditParticle.Dispose();
        }
Exemplo n.º 2
0
		public override void EditProperties()
		{
			frmPropertiesParticle EditParticle = new frmPropertiesParticle(this);
			
			EditParticle.ShowDialog();

			if(EditParticle.mbOkWasPressed)
			{
				msName = EditParticle.objNameText.Text;
				mbActive = EditParticle.objActiveBox.SelectedIndex==1?true:false;

				mfSizeX = (float)Convert.ToDouble(EditParticle.objXText.Text);
				mfSizeY = (float)Convert.ToDouble(EditParticle.objYText.Text);
				mfSizeZ = (float)Convert.ToDouble(EditParticle.objZText.Text);

				mfZ = (float)Convert.ToDouble(EditParticle.objPosZText.Text);
							
				mlTypeNum = EditParticle.objTypeBox.SelectedIndex;
			}
			
			EditParticle.Dispose();
		}