public void Save(ArgumentsWork.Parameters parameters, string dest)
        {
            if (dest == "")
            {
                dest = Util.GetNewPath(source, "(NEW).BMD");
            }

            File.WriteAllBytes(dest, BMD.Get(parameters.IsLittleEndian));
        }
        private void ExportBMD(string dest, ArgumentsWork.Parameters ParList)
        {
            if (dest == "")
            {
                dest = Util.GetNewPath(source, "(NEW).BMD");
            }

            PersonaEditorLib.FileStructure.BMD.BMD BMD = new PersonaEditorLib.FileStructure.BMD.BMD();
            BMD.Open(PTP);
            File.WriteAllBytes(dest, BMD.Get(ParList.IsLittleEndian));
        }
        private void ImportPTP(string src, ArgumentsWork.Parameters ParList)
        {
            if (src == "")
            {
                src = Util.GetNewPath(source, ".PTP");
            }

            PersonaEditorLib.FileStructure.PTP.PTP PTP = new PersonaEditorLib.FileStructure.PTP.PTP(ParList.OldFont, ParList.OldMap, ParList.NewFont, ParList.NewMap);
            PersonaEditorLib.FileStructure.BMD.BMD BMD = new PersonaEditorLib.FileStructure.BMD.BMD();
            BMD.Open(PTP);
            BF.SetBMD(BMD.Get(ParList.IsLittleEndian));
        }
        private void ExportBMD_Click(object sender, RoutedEventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog
            {
                Filter           = "BMD files|*.BMD",
                OverwritePrompt  = true,
                InitialDirectory = Path.GetDirectoryName(Static.Paths.OpenFileName),
                FileName         = Path.GetFileNameWithoutExtension(Static.Paths.OpenFileName) + "(NEW).BMD"
            };

            if (sfd.ShowDialog() == true)
            {
                PersonaEditorLib.FileStructure.BMD.BMD BMD = new PersonaEditorLib.FileStructure.BMD.BMD();
                BMD.Open(OV.PTP);
                File.WriteAllBytes(sfd.FileName, BMD.Get(Current.Default.IsLittleEndian));
            }
        }