Пример #1
0
 private void buttonConvert_Click(object sender, EventArgs e)
 {
     //            model = new MMDModel.MMDModel(textBox.Text, @"C:\Users\furaga\Desktop\test.csv", 1.0f);
     switch (saveFileDialog.ShowDialog())
     {
         case DialogResult.OK:
             if (Path.GetExtension(textBox.Text).ToLower() == ".pmd")
             {
                 model = new MMDModel.MMDModel(textBox.Text, saveFileDialog.FileName, 1.0f);
             }
             if (Path.GetExtension(textBox.Text).ToLower() == ".vmd")
             {
                 motion = new MMDMotion.MMDMotion(textBox.Text, saveFileDialog.FileName, 1.0f);
             }
             break;
         default:
             break;
     }
     //            Close();
 }
Пример #2
0
        private void buttonConvert_Click(object sender, EventArgs e)
        {
//            model = new MMDModel.MMDModel(textBox.Text, @"C:\Users\furaga\Desktop\test.csv", 1.0f);
            switch (saveFileDialog.ShowDialog())
            {
            case DialogResult.OK:
                if (Path.GetExtension(textBox.Text).ToLower() == ".pmd")
                {
                    model = new MMDModel.MMDModel(textBox.Text, saveFileDialog.FileName, 1.0f);
                }
                if (Path.GetExtension(textBox.Text).ToLower() == ".vmd")
                {
                    motion = new MMDMotion.MMDMotion(textBox.Text, saveFileDialog.FileName, 1.0f);
                }
                break;

            default:
                break;
            }
//            Close();
        }