Esempio n. 1
0
        private void RemoveButton_Click(object sender, EventArgs e)
        {
            var ind = SelectedStringInd;

            Content.Content.Get().Changes.BlockingResMod(new ResAction(() =>
            {
                ActiveString.RemoveString(ind);
            }, ActiveString));
            UpdateStrings();
            SelectedStringInd = Math.Max(0, ind - 1);
        }
Esempio n. 2
0
        private void RemoveButton_Click(object sender, EventArgs e)
        {
            if (MyList.SelectedIndex < 1)
            {
                return;
            }
            int id = MyList.SelectedIndex;

            Content.Content.Get().Changes.BlockingResMod(new ResAction(() =>
            {
                AnimTable.RemoveString(id);
            }, AnimTable));

            MyList.SelectedIndex--;
            RefreshAnimTable();
        }