Exemplo n.º 1
0
        private void saveAs()
        {
            if (saveDialog.ShowDialog() == DialogResult.OK)
            {
                currentFile = saveDialog.FileName;
                string animationName          = Path.GetFileNameWithoutExtension(currentFile);
                AnimationXMLSerializer aniXML = new AnimationXMLSerializer(
                    modelView.Scene.Model, animationName);
                aniXML.Save(currentFile);

                unsaved   = false;
                this.Text = title + " - " + animationName + ".xml";
            }
        }
Exemplo n.º 2
0
        private void save()
        {
            if (currentFile != null)
            {
                string animationName          = Path.GetFileNameWithoutExtension(currentFile);
                AnimationXMLSerializer aniXML = new AnimationXMLSerializer(
                    modelView.Scene.Model, animationName);
                aniXML.Save(currentFile);

                unsaved   = false;
                this.Text = title + " - " + animationName + ".xml";
            }
            else
            {
                saveAs();
            }
        }