public void UpdateSongList() { if ((SlideType)typeLookup.EditValue != SlideType.Song || bookLookup.EditValue == null) { return; } Book book = (Book)bookLookup.EditValue; if (book.BookID != -1) { object editValue = songLookup.EditValue; LoadSongLookup(book); if (editValue != null) { songLookup.Text = ((SongItem)editValue).Number.ToString(); songLookup.ClosePopup(); } } }
private void luEdit_GroupID_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Kind == DevExpress.XtraEditors.Controls.ButtonPredefines.Delete) { LookUpEdit COUNT = (LookUpEdit)sender; COUNT.EditValue = null; COUNT.Text = string.Empty; COUNT.ClosePopup(); } }
protected void DeleteInLookUp(LookUpEdit cmb) { cmb.ClosePopup(); cmb.EditValue = null; }