private void New() { frmEditUserCard F = new frmEditUserCard(); F.New(); if (F.ShowDialog() == DialogResult.OK) { DataBind(); } F.Dispose(); }
private void Edit() { if (viewQuery.FocusedRowHandle < 0) { return; } DataRow dr = viewQuery.GetDataRow(viewQuery.FocusedRowHandle); frmEditUserCard F = new frmEditUserCard(); F.Edit(Convert.ToDecimal(dr["Aid"])); if (F.ShowDialog() == DialogResult.OK) { DataBind(); } F.Dispose(); }