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