Exemple #1
0
        //View member Information
        private void dgvMember_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //【1】Gets the member details for the selected row
            Member objMember = null;

            try
            {
                objMember = objMemberServices.GetMemberById(dgvMember.CurrentRow.Cells[0].Value.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show("Abnormal access to selected member information! Specific reasons:" + ex.Message, "System Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            //【2】 Initialization of ActionFlag
            actionFlag = 1;

            //【3】 Loading a form
            if (objFrmMemberDetail == null)
            {
                objFrmMemberDetail = new frmMemberDetail(actionFlag, objMember);
                objFrmMemberDetail.Show();
            }
            else
            {
                objFrmMemberDetail.Activate();
                objFrmMemberDetail.WindowState = FormWindowState.Maximized;
            }
        }
Exemple #2
0
 //View all information about a member
 private void btnViewAllInfo_Click(object sender, EventArgs e)
 {
     if (objFrmMemberDetail == null)
     {
         //Form for meeting Membership details
         objFrmMemberDetail = new frmMemberDetail(1, objMember);
         //Display
         objFrmMemberDetail.Show();
     }
     else
     {
         objFrmMemberDetail.Activate();
         objFrmMemberDetail.WindowState = FormWindowState.Normal;
     }
 }
 //Load all member Information
 private void btnViewAll_Click(object sender, EventArgs e)
 {
     if (objMember == null)
     {
         MessageBox.Show("No information on membership change was found.!", "System Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     else if (objFrmMemberDetail == null)
     {
         objFrmMemberDetail = new frmMemberDetail(1, objMember);
         objFrmMemberDetail.Show();
     }
     else
     {
         objFrmMemberDetail.Activate();
         objFrmMemberDetail.WindowState = FormWindowState.Normal;
     }
 }