public static string Show(string key, string value)
 {
     using (var itb = new EditStringBox(key, value))
     {
         itb.ShowDialog();
         return(itb.Value);
     }
 }
示例#2
0
        // show the edit string box for the translation value
        void translationB_Click(object sender, EventArgs e)
        {
            int idx;

            if (cannotUseTranslationBoxes(out idx))
            {
                return;
            }

            var result = EditStringBox.Show(StringResources[idx].Key,
                                            StringResources[idx].TranslationValue);

            if (result != null)
            {
                translationTB.Text = StringResources[idx].TranslationValue = result;
                statusCSL.SetStatus($"The translation value has been updated for the {StringResources[idx].Key} key");
            }
        }