Exemple #1
0
        void RefreshAudioInfo(TMX tmx)
        {
            lstAudio.Items.Clear();

            foreach (AudioEntry entry in tmx.audioEntries)
            {
                lstAudio.Items.Add(string.Format("Audio Entry {0}", entry.index + 1));
            }

            lstAudio.SelectedIndex = 0;
        }
Exemple #2
0
        private void OpenTMX_Click(object sender, RoutedEventArgs e)
        {
            var picker = new CommonOpenFileDialog();

            picker.Filters.Add(new CommonFileDialogFilter("TMX Audio File", "tmx"));

            if (picker.ShowDialog() == CommonFileDialogResult.Ok)
            {
                tmx = tmx.ReadTMX(picker.FileName);

                if (tmx != null)
                {
                    RefreshAudioInfo(tmx);
                    RefreshTMXInfo(tmx.fileName);
                }
            }
        }