示例#1
0
        private void delete1_Click(object sender, EventArgs e)
        {
            if (cellSelected != null)
            {
                deleteWorker(cellSelected.worker);

                delete1.Visible = false;

                cellSelected = null;
            }
        }
示例#2
0
        public void selectWorkerCell(WorkerCell cell)
        {
            if (cellSelected != null)
            {
                cellSelected.deselect();
            }

            cellSelected = cell;

            bool selected = cell != null;

            delete1.Visible = selected;
        }