private void delete1_Click(object sender, EventArgs e) { if (cellSelected != null) { deleteWorker(cellSelected.worker); delete1.Visible = false; cellSelected = null; } }
public void selectWorkerCell(WorkerCell cell) { if (cellSelected != null) { cellSelected.deselect(); } cellSelected = cell; bool selected = cell != null; delete1.Visible = selected; }