Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MaintainMemberInformation form2 = new MaintainMemberInformation();

            //form2.txtMemberName.Text = context.Members.Where(x => x.UserID == currentuser.Userid).First().MemberName;
            //form2.tx = context.Members.Where(x => x.UserID == currentuser.Userid).First().MemberID.ToString();
            //form2.tx = currentuser.Type;
            //form2.txtAddress.Text = context.Members.Where(x => x.UserID == currentuser.Userid).First().Addresses;
            //form2.txtCity.Text = context.Members.Where(x => x.UserID == currentuser.Userid).First().City;
            //form2.txtContactNo.Text = context.Members.Where(x => x.UserID == currentuser.Userid).First().Contact.ToString();
            form2.Show();
        }
Esempio n. 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            Member b = new Member();
            MaintainMemberInformation mmi = (MaintainMemberInformation)this.Owner;

            mmi.cboMemberID.Text     = dataGridViewShowMemberInfo.CurrentRow.Cells[0].Value.ToString();
            mmi.txtMemberName.Text   = dataGridViewShowMemberInfo.CurrentRow.Cells[1].Value.ToString();
            mmi.txtTitle.Text        = dataGridViewShowMemberInfo.CurrentRow.Cells[2].Value.ToString();
            mmi.txtAge.Text          = dataGridViewShowMemberInfo.CurrentRow.Cells[3].Value.ToString();
            mmi.txtAddress.Text      = dataGridViewShowMemberInfo.CurrentRow.Cells[4].Value.ToString();
            mmi.txtCity.Text         = dataGridViewShowMemberInfo.CurrentRow.Cells[5].Value.ToString();
            mmi.txtContactNo.Text    = dataGridViewShowMemberInfo.CurrentRow.Cells[6].Value.ToString();
            mmi.txtEmail.Text        = dataGridViewShowMemberInfo.CurrentRow.Cells[7].Value.ToString();
            mmi.lblBorrowedBook.Text = dataGridViewShowMemberInfo.CurrentRow.Cells[8].Value.ToString();
            mmi.txtRemark.Text       = dataGridViewShowMemberInfo.CurrentRow.Cells[9].Value.ToString();
            this.Close();
        }