public static Vector3? GetScale() { ApplyScale edit = new ApplyScale(); edit.ShowDialog(); if (edit.OK) return new Vector3((float)edit.numericUpDownX.Value, (float)edit.numericUpDownY.Value, (float)edit.numericUpDownZ.Value); return null; }
public static Vector3 GetScale(out bool OK) { ApplyScale edit = new ApplyScale(); edit.ShowDialog(); OK = edit.OK; return(new Vector3((float)edit.numericUpDownX.Value, (float)edit.numericUpDownY.Value, (float)edit.numericUpDownZ.Value)); }