コード例 #1
0
        private void btnChangePass_Click(object sender, EventArgs e)
        {
            int  id = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
            User user;

            using (ClinicModel context = new ClinicModel())
            {
                user = context.Users
                       .Where(x => x.Identifier.Equals(id))
                       .Single();
            }

            frmChangePass frm = new frmChangePass(user);

            frm.ShowDialog();
        }
コード例 #2
0
ファイル: frmView_Users.cs プロジェクト: bharathnr1/CIS
        private void btnChangePass_Click(object sender, EventArgs e)
        {
            int id = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
            User user;

            using (ClinicModel context = new ClinicModel())
            {
                user = context.Users
                    .Where(x => x.Identifier.Equals(id))
                    .Single();
            }

            frmChangePass frm = new frmChangePass(user);
            frm.ShowDialog();

        }