private void toolStripButton2_Click(object sender, EventArgs e) { if (userBindingSource.Current != null) { frmUjUser fu = new frmUjUser(); fu.uid = ((_User)userBindingSource.Current).USER_ID; fu.ShowDialog(); } }
private void toolStripButton1_Click(object sender, EventArgs e) { frmUjUser fu = new frmUjUser(); fu.uid = -1; fu.ShowDialog(); if (fu.DialogResult == DialogResult.OK) { initDataset(); } }