private void txtMemberCode_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F1)
     {
         frmSearchMembers frmssm = new frmSearchMembers();
         frmssm.ShowDialog();
     }
 }
Esempio n. 2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmSearchMembers fsm = new frmSearchMembers();

            fsm.ShowDialog();
            if (fsm.SelectedMember != null)
            {
                this.txtMemberName.Text = fsm.SelectedMember.Name;
            }
        }
        private void btnSearchMember_Click(object sender, EventArgs e)
        {
            frmSearchMembers frmsm = new frmSearchMembers();

            frmsm.ShowDialog();
            if (frmsm.SelectedMember != null)
            {
                this.txtMemberCode.Text = frmsm.SelectedMember.Id.ToString();
                this.txtMemberName.Text = frmsm.SelectedMember.Name;
            }
        }