Beispiel #1
0
    void ImportProject(XmlElement parent, Project proj)
    {
        XmlElement elt = parent["Project"];

        // import ruler properties first so that all timecodes will be
        // parsed using the proper project ruler format.
        ImportRulerProperties(elt, proj.Ruler);
        if (UseProjectRulerFormatForTimecodes)
        {
            myTimecodeFormat = myVegas.Project.Ruler.Format;
        }
        ImportProjectVideoProperties(elt, proj.Video);
        ImportPreviewVideoProperties(elt, proj.Preview);
        ImportProjectAudioProperties(elt, proj.Audio);
        ImportSummaryProperties(elt, proj.Summary);
        ImportAudioCDProperties(elt, proj.AudioCD);
        ImportMediaPool(elt, proj.MediaPool);
        ImportBusTracks(elt, proj.BusTracks);
        ImportTracks(elt, proj.Tracks);
        ImportMarkers(elt, proj.Markers, "Markers");
        ImportMarkers(elt, proj.Regions, "Regions");
        ImportMarkers(elt, proj.CDTracks, "CDTracks");
        ImportMarkers(elt, proj.CDIndices, "CDIndices");
        ImportMarkers(elt, proj.CommandMarkers, "CommandMarkers");
    }
Beispiel #2
0
    public void FromVegas(Vegas vegas)
    {
        myVegas = vegas;
        if (UseProjectRulerFormatForTimecodes)
        {
            myTimecodeFormat = myVegas.Project.Ruler.Format;
        }

        String outputFile = myVegas.Project.FilePath;

        if (!String.IsNullOrEmpty(outputFile))
        {
            String fileNameWOExt = Path.GetFileNameWithoutExtension(outputFile);
            String directoryName = Path.GetDirectoryName(outputFile);
            outputFile = Path.Combine(directoryName, fileNameWOExt + ".xml");
        }

        outputFile = ShowSaveFileDialog("XML Files (*.xml)|*.xml", "XML Output File", outputFile);
        myVegas.UpdateUI();

        if (null != outputFile)
        {
            ExportXml(outputFile);
        }
    }