public Form1() { InitializeComponent(); ChangeLoading(); comboBoxWord.DisplayMember = "Key"; WebBrowser VietName = new WebBrowser(); VietName.Width = 0; VietName.Height = 0; VietName.Visible = false; VietName.ScriptErrorsSuppressed = true; VietName.Navigate(Content.VietNamelink); VietName.DocumentCompleted += VietName_DocumentCompleted; this.Controls.Add(VietName); WebBrowser English = new WebBrowser(); English.Width = 0; English.Height = 0; English.Visible = false; English.ScriptErrorsSuppressed = true; English.Navigate(Content.Englishlink); English.DocumentCompleted += English_DocumentCompleted; this.Controls.Add(English); speakVietNamese = new SpeakTest(VietName); speakEnglish = new SpeakTest(English); dictionary = new DictionaryManager(); dictionary.LoadDatatoComboBox(comboBoxWord); }
public Form1() { InitializeComponent(); ChangeLoading(); WebBrowser wbVN = new WebBrowser(); wbVN.Height = 0; wbVN.Width = 0; wbVN.Visible = false; wbVN.ScriptErrorsSuppressed = true; this.Controls.Add(wbVN); wbVN.Navigate(Cons.VNLink); wbVN.DocumentCompleted += WbVN_DocumentCompleted; WebBrowser wbEng = new WebBrowser(); wbEng.Height = 0; wbEng.Width = 0; wbEng.Visible = false; wbEng.ScriptErrorsSuppressed = true; this.Controls.Add(wbEng); wbEng.Navigate(Cons.USLink); wbEng.DocumentCompleted += WbEng_DocumentCompleted; Vietnamese = new SpeakText(wbVN); English = new SpeakText(wbEng); cbWord.DisplayMember = "Key"; dictionary = new DictionaryManager(); dictionary.LoadDataToComboBox(cbWord); }
public Form1() { InitializeComponent(); cbWord.DisplayMember = "Key"; dictionary = new DictionaryManager(); dictionary.LoadDataToCombo(cbWord); }
public FormDictionary() { InitializeComponent(); comboBoxWord.DisplayMember = "Key"; dictionaryManager = new DictionaryManager(); dictionaryManager.LoadDataToComboBox(comboBoxWord); speaker = new SpeechSynthesizer(); speaker.SelectVoiceByHints(VoiceGender.Female); speaker.Rate = 5; }
//bool isLoading2=true; //WebBrowser wbVn = new WebBrowser(); //WebBrowser wbEn = new WebBrowser(); public Form1() { InitializeComponent(); ChangeLoading(); //wbVn.Visible = false; //wbVn.ScriptErrorsSuppressed = true; //wbVn.Navigate(SpeakText.VietNamLink); //wbVn.DocumentCompleted += WbVn_DocumentCompleted; //this.Controls.Add(wbVn); webBrowser1.Visible = false; webBrowser1.ScriptErrorsSuppressed = true; webBrowser1.Navigate(SpeakText.EnglishLink); webBrowser1.DocumentCompleted += WbEn_DocumentCompleted; dictionary = new DictionaryManager(); cbWord.DisplayMember = "Key"; dictionary.LoadDataToComboBox(cbWord); }