void rIBtnEdit_ButtonClick(object sender, ButtonPressedEventArgs e) { try { DataRow dr = this.gridView.GetDataRow(this.gridView.FocusedRowHandle); UserInfoBean UIf = UserInfoBll.Instance.GetUserBy(dr[0].ToString()); frm_Sign signupForm = new frm_Sign(UIf); if (signupForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { BeginInit(); } } catch (Exception ex) { XtraMessageBox.Show("编辑数据失败!", "错误"); } }
/// <summary> /// 注册用户 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSignup_Click(object sender, EventArgs e) { frm_Sign sufrm = new frm_Sign(); sufrm.ShowDialog(this); }