コード例 #1
0
 private void ClearUIData()
 {
     TextBlock_SubtitleAddress.Text = "";
     TextBox_MessageIdBranchSequence.Clear();
     TextBox_EditSubtitle.Clear();
     TextBlock_AfsAudioIDName.Text = "";
     TextBox_AudioID.Clear();
     TextBox_SubtitleActiveTime.Clear();
     Button_DeleteEntry.IsEnabled  = false;
     Button_GotoSelected.IsEnabled = false;
 }
コード例 #2
0
        private void Button_SaveCurrentEntry_Click(object sender, RoutedEventArgs e)
        {
            if (ListBox_CurrentFNT.SelectedItem == null)
            {
                return;
            }
            var currentEntryIndex = currentFnt.entryTable.IndexOf((TableEntry)ListBox_CurrentFNT.SelectedItem);

            if (currentEntryIndex == -1)
            {
                MessageBox.Show("Error, subtitle not found, report this bug");
                return;
            }
            currentFnt.UpdateEntrySubtitle(currentEntryIndex, TextBox_EditSubtitle.Text);
            currentFnt.UpdateEntryMessageIdBranchSequence(currentEntryIndex, int.Parse(TextBox_MessageIdBranchSequence.Text));
            currentFnt.UpdateEntryEntryType(currentEntryIndex, ComboBox_EntryType.SelectedIndex);
            currentFnt.UpdateEntryAudioID(currentEntryIndex, int.Parse(TextBox_AudioID.Text));
            currentFnt.UpdateEntryActiveTime(currentEntryIndex, int.Parse(TextBox_SubtitleActiveTime.Text));
            UpdateDisplayFntsView();
            UpdateDisplayTableListView();
            Button_ExportChangedFNTs.IsEnabled = true;
            TextBox_EditSubtitle.Clear();
            ListBox_CurrentFNT.SelectedIndex = ListBox_CurrentFNT.Items.IndexOf(currentFnt.entryTable[currentEntryIndex]);
        }