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

            if (ind == 0)
            {
                return;
            }

            Content.Content.Get().Changes.BlockingResMod(new ResAction(() =>
            {
                var old = ActiveString.GetStringEntry(ind - 1);
                ActiveString.SwapString(ind, ind - 1);
            }, ActiveString));
            UpdateStrings();
            SelectedStringInd = ind - 1;
        }