示例#1
0
        private void TsbAddUser_Click(object sender, EventArgs e)
        {
            AddEdit_form frm = new AddEdit_form();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                getData();
            }
        }
示例#2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            int          Contact_ID = Convert.ToInt32(dgContact.CurrentRow.Cells[0].Value.ToString());
            AddEdit_form frm        = new AddEdit_form();

            frm.ContactID = Contact_ID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                getData();
            }
        }