public EyeExamRecordUC() { InitializeComponent(); List <mst_conclusion_favorite_dtl> mst = new FavoriteCls().getFavorite(favoriteTextBox1.FavoriteOrder, favoriteTextBox1.FavoriteType); favoriteTextBox1.AutoCompleteListThList = mst.Select(x => x.mcfd_description).ToList(); dgvDiagnosis.AutoGenerateColumns = false; setMainTopicCombo(); setMapField(); setEventCombo(); }
public EchoUC() { InitializeComponent(); autoCompleteUC1.DataSource = obj.GetDoctorData(); autoCompleteUC1.ValueMember = "SSUSR_Initials"; autoCompleteUC1.DisplayMember = "CTPCP_Desc"; autoCompleteUC1.SelectedValueChanged += new UserControlLibrary.TextBoxAutoComplete.OnSelectedValueChanged(autoCompleteUC1_SelectedValueChanged); List <mst_conclusion_favorite_dtl> mst = new FavoriteCls().getFavorite(favoriteTextBox1.FavoriteOrder, favoriteTextBox1.FavoriteType); favoriteTextBox1.AutoCompleteListThList = mst.Select(x => x.mcfd_description).ToList(); favoriteTextBox1.RightClickDropDown += favoriteTextBox1_DeleteFavorite; }
private void favoriteTextBox1_btnFavoriteClick(object sender, EventArgs e) { FavoriteTextBox txtBox = sender as FavoriteTextBox; if (txtBox != null) { bool savefav = new FavoriteCls().saveFavorite(txtBox.FavoriteOrder, txtBox.FavoriteType, txtBox.Text, username); if (savefav) { txtBox.AutoCompleteListThList.Add(txtBox.Text); MessageBox.Show("Add '" + txtBox.Text + "' to favorite Complete."); } } }
private void favorite_btnFavoriteClick(object sender, EventArgs e) { FavoriteTextBox txtBox = sender as FavoriteTextBox; if (txtBox != null) { string user_name = Program.CurrentUser == null ? null : Program.CurrentUser.mut_username; bool savefav = new FavoriteCls().saveFavorite(txtBox.FavoriteOrder, txtBox.FavoriteType, txtBox.Text, user_name); if (savefav) { txtBox.AutoCompleteListThList.Add(txtBox.Text); MessageBox.Show("Add '" + txtBox.Text + "' to favorite Complete."); } } }