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(); }
private void button_EditPlayerEntry_Click(object sender, RoutedEventArgs e) { var entryEdit = new EventEntryEditWindow(CurrentEvent.Entries.Player, GameDatabase.GetCarColorNumByLabel(CurrentEvent.Entries.Player.CarLabel)); entryEdit.ShowDialog(); }