예제 #1
0
        private void ExportFamiTracker()
        {
            var filename = PlatformUtils.ShowSaveFileDialog("Export FamiTracker Text File", "FamiTracker Text Format (*.txt)|*.txt");

            if (filename != null)
            {
                var props = dialog.GetPropertyPage((int)ExportFormat.FamiTracker);
                FamitrackerFile.Save(project, filename, GetSongIds(props.GetPropertyValue <bool[]>(0)));
            }
        }
예제 #2
0
        private void ExportFamiTracker()
        {
            var sfd = new SaveFileDialog()
            {
                Filter = "FamiTracker Text Format (*.txt)|*.txt",
                Title  = "Export FamiTracker Text File"
            };

            if (sfd.ShowDialog() == DialogResult.OK)
            {
                var props = formatProps[(int)ExportFormat.FamiTracker];
                FamitrackerFile.Save(project, sfd.FileName, GetSongIds(props.GetPropertyValue <bool[]>(0)));
            }
        }