private void NUD_Count_ValueChanged(object sender, EventArgs e) { if (Index < 0) { return; } Counts[Index] = (short)NUD_Count.Value; LB_Counts.Items[Index] = EventFlagPlayer.GetName((ushort)Index, Counts[Index], GameInfo.Strings.InternalNameTranslation); }
public FlagEditor(short[] counts) { Counts = counts; InitializeComponent(); this.TranslateInterface(GameInfo.CurrentLanguage); var str = GameInfo.Strings.InternalNameTranslation; for (ushort i = 0; i < counts.Length; i++) { LB_Counts.Items.Add(EventFlagPlayer.GetName(i, counts[i], str)); } DialogResult = DialogResult.Cancel; LB_Counts.SelectedIndex = 0; }