コード例 #1
0
        /// <summary>
        /// Method to invoke when the ImportCollecton command is executed.
        /// </summary>
        private void ImportCollection()
        {
            var aDialog = new MarkCollectionImportDialog();

            if (aDialog.ShowDialog() == DialogResult.OK)
            {
                if (aDialog.IsVixen3BeatSelection)
                {
                    MarkImportExportService.ImportVixen3Beats(MarkCollections);
                }
                if (aDialog.IsVampBarSelection || aDialog.IsAudacityBeatSelection)
                {
                    MarkImportExportService.LoadBarLabels(MarkCollections);
                }
                if (aDialog.IsVampBeatSelection)
                {
                    MarkImportExportService.LoadBeatLabels(MarkCollections);
                }
                if (aDialog.IsXTimingSelection)
                {
                    MarkImportExportService.LoadXTiming(MarkCollections);
                }
                if (aDialog.IsPapagayoSelection)
                {
                    MarkImportExportService.ImportPapagayoTracks(MarkCollections);
                }
                if (aDialog.IsTimingTrackBrowserSelection)
                {
                    MarkImportExportService.ImportSingingFacesTracks(MarkCollections);
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Method to invoke when the ExportCollection command is executed.
        /// </summary>
        private void ExportCollection()
        {
            var bDialog = new BeatMarkExportDialog();

            if (bDialog.ShowDialog() == DialogResult.OK)
            {
                if (bDialog.IsVixen3Selection)
                {
                    MarkImportExportService.ExportMarkCollections("vixen3", MarkCollections);
                }
                if (bDialog.IsAudacitySelection)
                {
                    MarkImportExportService.ExportMarkCollections("audacity", MarkCollections);
                }
                if (!bDialog.IsVixen3Selection && !bDialog.IsAudacitySelection)
                {
                    var messageBox = new MessageBoxForm("No export type selected", "Warning", MessageBoxButtons.OK, SystemIcons.Warning);
                    messageBox.ShowDialog();
                }
            }
        }