public void them(TextBox a, TextBox b, TextBox c, ComboBox d) { DictionaryData dt = new DictionaryData(); dt.Key = a.Text; dt.Meaning = b.Text; dt.Explaination = c.Text; items.Items.Add(dt); GhiXML(Items, path); items = (DictionaryItem)DocXML(path); loadtoCB(d); }
private void CBEng_SelectedIndexChanged(object sender, EventArgs e) { ComboBox cb = sender as ComboBox; if (cb.DataSource == null) { return; } DictionaryData data = cb.SelectedItem as DictionaryData; TBVN.Text = data.Meaning; TBMT.Text = data.Explaination; }