Ejemplo n.º 1
0
        private void emname_txt_Click(object sender, EventArgs e)
        {
            EmployeeName name = new EmployeeName();

            if (name.ShowDialog(this) == DialogResult.OK)
            {
                emname_txt.Text = name.emname_grid.Rows[name.row].Cells[1].Value.ToString();
                // emname_txt.Tag = name.emname_grid.Rows[name.row].Cells[0].Value.ToString();
                mtxt_eid.Tag = name.emname_grid.Rows[name.row].Cells[0].Value.ToString();
            }
            name.Dispose();
        }
Ejemplo n.º 2
0
        private void emname_txt_Click(object sender, EventArgs e)
        {
            connection = new MySqlConnection(ConnectionString);
            EmployeeName name = new EmployeeName();

            if (name.ShowDialog(this) == DialogResult.OK)
            {
                emname_txt.Text = name.emname_grid.Rows[name.row].Cells[1].Value.ToString();
                //emname_txt.Tag = name.emname_grid.Rows[name.row].Cells[0].Value.ToString();
                mtxt_eid.Tag = name.emname_grid.Rows[name.row].Cells[0].Value.ToString();
            }
            name.Dispose();
        }