示例#1
0
        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();
                }
            }
        }
示例#2
0
 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();
     }
 }
示例#3
0
 protected void DeleteInLookUp(LookUpEdit cmb)
 {
     cmb.ClosePopup();
     cmb.EditValue = null;
 }