Beispiel #1
0
        public async void makeInsertCall()
        {
            TranslationRecord record = new TranslationRecord();

            record.character = PhonewordText.Text;
            record.number    = translatedNumber;
            var response = await apiService.AddTranslation(record);

            System.Diagnostics.Debug.Write(response.affectedRows);
        }
Beispiel #2
0
        private async void TranslateButton_Click(object sender, System.EventArgs e)
        {
            TranslatedNumber = PhonewordTranslator.ToNumber(phoneNumberText.Text);
            if (string.IsNullOrWhiteSpace(TranslatedNumber))
            {
                callButton.Text    = "Call";
                callButton.Enabled = false;
            }
            else
            {
                callButton.Text    = "Call " + TranslatedNumber;
                callButton.Enabled = true;

                TranslationRecord record = new TranslationRecord();
                record.character = phoneNumberText.Text;
                record.number    = TranslatedNumber;
                var response = await apiService.AddTranslation(record);

                System.Diagnostics.Debug.Write(response.affectedRows);
            }
        }