public override void EditProperties() { frmPropertiesArea EditArea = new frmPropertiesArea(this); EditArea.ShowDialog(); if (EditArea.mbOkWasPressed) { msName = EditArea.objNameText.Text; mbActive = EditArea.objActiveBox.SelectedIndex == 1?true:false; mfWidth = (float)Convert.ToDouble(EditArea.objWidthText.Text); mfHeight = (float)Convert.ToDouble(EditArea.objHeightText.Text); mfSizeX = (float)Convert.ToDouble(EditArea.objXText.Text); mfSizeY = (float)Convert.ToDouble(EditArea.objYText.Text); mfSizeZ = (float)Convert.ToDouble(EditArea.objZText.Text); mlTypeNum = EditArea.objTypeBox.SelectedIndex; } EditArea.Dispose(); }
public override void EditProperties() { frmPropertiesArea EditArea = new frmPropertiesArea(this); EditArea.ShowDialog(); if(EditArea.mbOkWasPressed) { msName = EditArea.objNameText.Text; mbActive = EditArea.objActiveBox.SelectedIndex==1?true:false; mfWidth = (float)Convert.ToDouble(EditArea.objWidthText.Text); mfHeight = (float)Convert.ToDouble(EditArea.objHeightText.Text); mfSizeX = (float)Convert.ToDouble(EditArea.objXText.Text); mfSizeY = (float)Convert.ToDouble(EditArea.objYText.Text); mfSizeZ = (float)Convert.ToDouble(EditArea.objZText.Text); mlTypeNum = EditArea.objTypeBox.SelectedIndex; } EditArea.Dispose(); }