public UserControl_WordInfo(ViEnDTO args, UserControl_Search usercontrolSearch) { InitializeComponent(); father = usercontrolSearch; word1 = args; label_Word.Text = word1.VietNamese; rtb_vietnamese.Text = word1.getEnglishFormat(); metroTile_Speaker.Visible = false; xuiButton_Interest.Visible = false; xuiButton_NotInterest.Visible = false; }
public UserControl_WordInfo(EnViDTO args, UserControl_Search usercontrolSearch) { InitializeComponent(); father = usercontrolSearch; word = args; label_Word.Text = word.English; rtb_vietnamese.Text = word.getVietNameseFormat(); foreach (var fa in father.Father.Favorite) { if (fa.English == word.English) { xuiButton_Interest.Visible = true; xuiButton_NotInterest.Visible = false; break; } } }