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