private void registerNewUserToolStripMenuItem_Click(object sender, EventArgs e) { User.Register r = new User.Register(this, false); r.MdiParent = this.MdiParent; r.Show(); if (r.can_exit) { update_dfv(true); } }
private void modifyToolStripMenuItem_Click(object sender, EventArgs e) { string username = dataGridView1.CurrentRow.Cells[1].Value.ToString(); string id = dataGridView1.CurrentRow.Cells[0].Value.ToString(); User.Register r = new User.Register(this, true); r.MdiParent = this.MdiParent; r.Show(); r.get_user_data(username, id); if (r.can_exit) { update_dfv(true); } }
private void button2_Click(object sender, EventArgs e) { User.Register r = new User.Register(this, false); r.ShowDialog(); }