示例#1
0
        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]);
        }
示例#2
0
 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;
 }
示例#3
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;
 }