コード例 #1
0
        private void button_EditFixedAI_Clicked(object sender, RoutedEventArgs e)
        {
            if (listBox_AIFixedEntries.SelectedIndex == -1)
            {
                return;
            }

            var entry     = _fixedEntries[listBox_AIFixedEntries.SelectedIndex];
            var entryEdit = new EventEntryEditWindow(entry, GameDatabase.GetCarColorNumByLabel(entry.CarLabel));

            entryEdit.ShowDialog();

            ResortFixedAIs();
        }
コード例 #2
0
        private void button_EditPlayerEntry_Click(object sender, RoutedEventArgs e)
        {
            var entryEdit = new EventEntryEditWindow(CurrentEvent.Entries.Player, GameDatabase.GetCarColorNumByLabel(CurrentEvent.Entries.Player.CarLabel));

            entryEdit.ShowDialog();
        }