Esempio n. 1
0
        private void frmMemList_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmMember frm = new frmMember();

            frm.Show();
        }
Esempio n. 2
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                DataGridViewRow row = dataGridView1.SelectedRows[0];
                this.Hide();
                frmMember frmMLst = new frmMember();
                frmMLst.Show();

                frmMLst.txtMemberId.Text    = row.Cells[0].Value.ToString();
                frmMLst.txtMemName.Text     = row.Cells[1].Value.ToString();
                frmMLst.txtMemSurname.Text  = row.Cells[2].Value.ToString();
                frmMLst.txtAddress.Text     = row.Cells[3].Value.ToString();
                frmMLst.txtCell.Text        = row.Cells[4].Value.ToString();
                frmMLst.dtpDateOfBirth.Text = row.Cells[5].Value.ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 3
0
        private void memberInfoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmMember frmMem = new frmMember();

            frmMem.Show();
        }