private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e) { try { using (frmUserInfo fUserInfo = new frmUserInfo()) { fUserInfo.USER_ID = this._userid; fUserInfo.ShowDialog(this); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } }
void SetCurPerson() { frmUserInfo dlg = new frmUserInfo(); dlg.ShowDialog(); }