public override void EditProperties() { frmPropertiesProp EditProp = new frmPropertiesProp(this); EditProp.ShowDialog(); if (EditProp.mbOkWasPressed) { msName = EditProp.objNameText.Text; mbActive = EditProp.objActiveBox.SelectedIndex == 1?true:false; mfWidth = (float)Convert.ToDouble(EditProp.objWidthText.Text); mfHeight = (float)Convert.ToDouble(EditProp.objHeightText.Text); mfZ = (float)Convert.ToDouble(EditProp.objZText.Text); mfAngle = (float)Convert.ToDouble(EditProp.objAngleText.Text); mbFlipH = EditProp.objFlipHBox.SelectedIndex == 1?true:false; mbFlipV = EditProp.objFlipVBox.SelectedIndex == 1?true:false; mlAnimNum = EditProp.objAnimBox.SelectedIndex; } EditProp.Dispose(); }
public override void EditProperties() { frmPropertiesProp EditProp = new frmPropertiesProp(this); EditProp.ShowDialog(); if(EditProp.mbOkWasPressed) { msName = EditProp.objNameText.Text; mbActive = EditProp.objActiveBox.SelectedIndex==1?true:false; mfWidth = (float)Convert.ToDouble(EditProp.objWidthText.Text); mfHeight = (float)Convert.ToDouble(EditProp.objHeightText.Text); mfZ = (float)Convert.ToDouble(EditProp.objZText.Text); mfAngle = (float)Convert.ToDouble(EditProp.objAngleText.Text); mbFlipH = EditProp.objFlipHBox.SelectedIndex==1?true:false; mbFlipV = EditProp.objFlipVBox.SelectedIndex==1?true:false; mlAnimNum = EditProp.objAnimBox.SelectedIndex; } EditProp.Dispose(); }