private void btnChangePw_Click(object sender, EventArgs e)
        {
            cmd = new MySqlCommand("select * from dtlogin where empID = '" + empID + "'", conn);
            conn.Open();
            reader = cmd.ExecuteReader();
            string supervisorName = "";

            if (reader.Read())
            {
                supervisorName = reader.GetString("empName").Trim();
            }
            conn.Close();
            frmChangePassword frmObj = frmChangePassword.getInstance(supervisorName);

            frmObj.Show();
            frmObj.BringToFront();
        }
        private void btnChangePassword_Click(object sender, EventArgs e)
        {
            frmChangePassword obj = frmChangePassword.getInstance(salesmanName);

            obj.Show();
        }
예제 #3
0
        private void btnChangePass_Click(object sender, EventArgs e)
        {
            frmChangePassword obj = frmChangePassword.getInstance(cmbWorkerName.Text.Trim());

            obj.Show();
        }