Exemplo n.º 1
0
        private void update_btn_Click(object sender, EventArgs e)
        {
            Update edit = new Update();
           // edit.Visitors = this;

            edit.Show();

           /* try
            {
                cmd.CommandText += "UPDATE Visitors set vis_fname='" + v_fname_txt.Text + "',vis_lname='" + v_lname_txt.Text + "',date_time='" + date_time.Text + "',pat_fname='" + p_fname_txt.Text + "',pat_lname='" + p_lname_txt.Text + "'where vis_fname='"+v_fname_txt.Text+"';";
                cmd.CommandType = CommandType.Text;
                cmd.Connection = conn;
                conn.Open();
                cmd.ExecuteNonQuery();
                conn.Close();
                MessageBox.Show("Visitor added");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }**/
        }
Exemplo n.º 2
0
        private void del_btn_Click(object sender, EventArgs e)
        {
            Update del = new Update();

            del.Show();
        }
 private void updateVisitorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Update u = new Update();
     u.MdiParent = this;
     u.Show();
 }