public void InsertToRuleList() { Translation currentTranslation = (Translation)vocabTranslationListUI.GetSelectedItemFromGroup(vocabTranslationListUI.VocabTranslationSelected); string english = currentTranslation.CurrentEnglish; string welsh = currentTranslation.CurrentWelsh; DbCommands.InsertTupleToTable("VocabRuleList", english, welsh, ruleNumber); addRuleBtn.GetComponent <Text>().text = "Remove"; Image btnImg = gameObject.transform.Find("DescriptionInput").GetComponent <Image>(); btnImg.color = Color.green; IsAssignedToSelectedTranslation = true; }
public void InsertToTagList() { print(vocabTranslationListUI); Translation currentTranslation = (Translation)vocabTranslationListUI.GetSelectedItemFromGroup(vocabTranslationListUI.VocabTranslationSelected); string welsh = currentTranslation.CurrentWelsh; string english = currentTranslation.CurrentEnglish; DbCommands.InsertTupleToTable("VocabTagged", tagText, english, welsh); addTagBtn.GetComponent <Text>().text = "Remove"; Image btnImg = textInput.GetComponent <Image>(); btnImg.color = Color.green; IsAssignedToSelectedTranslation = true; }