OSDN Git Service

indent.
authornomeu <nomeu@nomeu.org>
Mon, 26 Jan 2015 13:13:57 +0000 (22:13 +0900)
committernomeu <nomeu@nomeu.org>
Mon, 26 Jan 2015 13:13:57 +0000 (22:13 +0900)
Form1.cs

index 75723a8..852fe26 100644 (file)
--- a/Form1.cs
+++ b/Form1.cs
@@ -203,27 +203,23 @@ namespace Tso2MqoGui
                 TSOGeneratorRefBone gen = new TSOGeneratorRefBone(config);
                 gen.Generate(file, tbTsoFileRef.Text, tbTsoFile.Text);
             }
-            else
-                if (rbOneBone.Checked)
-                {
-                    TSOGeneratorOneBone gen = new TSOGeneratorOneBone(config);
+            else if (rbOneBone.Checked)
+            {
+                TSOGeneratorOneBone gen = new TSOGeneratorOneBone(config);
 
-                    foreach (ListViewItem item in lvObjects.Items)
+                foreach (ListViewItem item in lvObjects.Items)
+                {
+                    if (item.SubItems[1].Text == "")
                     {
-                        if (item.SubItems[1].Text == "")
-                        {
-                            MessageBox.Show("すべてのオブジェクトにボーンを設定してください");
-                            return;
-                        }
-
-                        gen.ObjectBoneNames.Add(item.SubItems[0].Text, item.SubItems[1].Text);
+                        MessageBox.Show("すべてのオブジェクトにボーンを設定してください");
+                        return;
                     }
 
-                    gen.Generate(file, tbTsoFileRef.Text, tbTsoFile.Text);
-                }
-                else
-                {
+                    gen.ObjectBoneNames.Add(item.SubItems[0].Text, item.SubItems[1].Text);
                 }
+
+                gen.Generate(file, tbTsoFileRef.Text, tbTsoFile.Text);
+            }
         }
         #region tso->mqo UI
         private void button1_Click(object sender, EventArgs e)