private void btnUser_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var chooseuser = new ChooseEmployee(); chooseuser.ShowDialog(); UserId = chooseuser.UserID; beUser.Text = chooseuser.Username; }