Example #1
0
        private void CusList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            string FirstName = (string)CusList.Rows[e.RowIndex].Cells[0].Value;

            foreach (Customer cus in CustomerArray)
            {
                if (cus.FirstName == FirstName)
                {
                    ShowDetails(cus);
                    break;
                }
            }
            CusDetailPanel.Show();
            CusNewPanel.Hide();
        }
Example #2
0
 private void toolStripMenuItem1_Click(object sender, EventArgs e)
 {
     CusNewPanel.Show();
     CusDetailPanel.Hide();
 }
Example #3
0
 private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     CusNewPanel.Show();
     CusDetailPanel.Hide();
 }