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

            Content.Content.Get().Changes.BlockingResMod(new ResAction(() =>
            {
                ActiveString.SetString(ind, OldStr, ActiveLanguage);
            }, ActiveString));
            UpdateStrings();
            SelectedStringInd = ind;
        }
Esempio n. 2
0
        private void NameBox_TextChanged(object sender,EventArgs e)
        {
            if (OwnChange)
            {
                return;
            }
            var text = NameBox.Text;
            var ind  = SelectedStringInd;

            if (ActiveSLOTLabel != null)
            {
                Content.Content.Get().Changes.QueueResMod(new ResAction(() =>
                {
                    while (ind >= ActiveSLOTLabel.Length)
                    {
                        ActiveSLOTLabel.InsertString(ActiveSLOTLabel.Length,new STRItem(""));
                    }
                    ActiveSLOTLabel.SetString(ind,text);
                },ActiveSLOTLabel));
            }
        }