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(); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { CusNewPanel.Show(); CusDetailPanel.Hide(); }
private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { CusNewPanel.Show(); CusDetailPanel.Hide(); }