Remove textBoxFailCheck from generateModel

This commit is contained in:
miku-666
2022-08-02 21:26:25 +02:00
parent 795444196b
commit 0d2ec6b3f3

View File

@@ -138,7 +138,7 @@ namespace PckStudio
public float Length;
public int U, V;
public ModelPart(string @type, float x, float y, float z, float width, float height, float length, int u, int v)
public ModelPart(string type, float x, float y, float z, float width, float height, float length, int u, int v)
{
Type = type;
X = x;
@@ -212,6 +212,18 @@ namespace PckStudio
string name = Format[0];
if (ValidModelBoxTypes.Contains(name))
{
// %10ls = name
// %f
// %f
// %f
// %f
// %f
// %f
// %f
// %f
// %d
// %d
// %f
try
{
float x = float.Parse(Format[1]);
@@ -930,18 +942,6 @@ namespace PckStudio
//render();
}
private void textBoxFailCheck(TextBox textBox)
{
try
{
textBox.Text = double.Parse(textBox.Text).ToString();
}
catch (Exception ex)
{
textBox.Text = "0";
}
}
private void SizeXUpDown_ValueChanged(object sender, EventArgs e)
{
if (listViewBoxes.SelectedItems.Count != 0 &&