Exemplo n.º 1
0
        private void buttonSplitMDL_Click(object sender, EventArgs e)
        {
            string outdir = Path.GetDirectoryName(textBoxMDLFilename.Text);

            string[] animationFiles = new string[listBoxMDLAnimationFiles.Items.Count];

            for (int i = 0; i < listBoxMDLAnimationFiles.Items.Count; i++)
            {
                animationFiles[i] = listBoxMDLAnimationFiles.Items[i].ToString();
            }

            if (!checkBoxMDLSameFolder.Checked)
            {
                FolderBrowserDialog sav = new FolderBrowserDialog();
                if (sav.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    outdir = sav.SelectedPath;
                }
                else
                {
                    return;
                }
            }

            List <string> files = new List <string>();

            files.Add(textBoxMDLFilename.Text);
            files.AddRange(listBoxMDLAnimationFiles.Items.Cast <String>().ToList());
            SplitProgress spl = new SplitProgress(null, files, null, outdir, false, checkBoxMDLBigEndian.Checked ? 2 : 1);

            spl.ShowDialog();
        }
Exemplo n.º 2
0
        private void buttonSplit_Click(object sender, EventArgs e)
        {
            string outdir = "";

            if (!checkBoxSameFolderSplit.Checked)
            {
                SaveFileDialog sd = new SaveFileDialog()
                {
                    Title = "Select output folder", FileName = "output", DefaultExt = ""
                };
                if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    outdir = sd.FileName;
                }
                else
                {
                    return;
                }
            }
            SplitProgress spl = new SplitProgress(null, listBoxSplitFiles.Items.Cast <String>().ToList(), DataMappingFolder, outdir, checkBoxFindAllSplit.Checked);

            spl.ShowDialog();
        }