private void TxtAPI_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.A && e.Modifiers == Keys.Control)
     {
         TxtAPI.SelectAll();
     }
 }
        private async void GetAPITranslation()
        {
            TxtAPI.Clear();
            BtnAPItochnBox.Enabled = false;
            Task <string> GetTranslationTask = new Task <string>(FuncAsyncGetTranslation);

            try
            {
                GetTranslationTask.Start();
                TxtAPI.Text = await GetTranslationTask;
                GetTranslationTask.Dispose();
            }
            catch
            {
                TxtAPI.Text = "Nothing";
                GetTranslationTask.Dispose();
            }
            BtnAPItochnBox.Enabled = true;

            string FuncAsyncGetTranslation()
            {
                return(YMLTools.GetTranslatedTextFromAPI(YMLTools.RemoveReturnMark(TxtENG.Text)));
            }
        }
 private void TxtAPI_DoubleClick(object sender, EventArgs e)
 {
     TxtAPI.SelectAll();
 }
 private void BtnReadJson_Click(object sender, EventArgs e)
 {
     DictJson = XMLTools.MakeJsonDict();
     TxtAPI.AppendText("json loaded:" + DictJson.Count());
 }