예제 #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] = EventFlagHouse.GetName((ushort)Index, Counts[Index], GameInfo.Strings.InternalNameTranslation);
        }
예제 #2
0
        public PlayerHouseFlagEditor(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(EventFlagHouse.GetName(i, counts[i], str));
            }
            DialogResult            = DialogResult.Cancel;
            LB_Counts.SelectedIndex = 0;
        }