Exemplo n.º 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] = EventFlagLand.GetFlagName((ushort)Index, Counts[Index]);
        }
Exemplo n.º 2
0
        public LandFlagEditor(short[] counts)
        {
            InitializeComponent();
            this.TranslateInterface(GameInfo.CurrentLanguage);

            Counts = counts;
            for (ushort i = 0; i < counts.Length; i++)
            {
                LB_Counts.Items.Add(EventFlagLand.GetFlagName(i, counts[i]));
            }
            DialogResult            = DialogResult.Cancel;
            LB_Counts.SelectedIndex = 0;
        }