private void button4_Click(object sender, EventArgs e) { WorkerManager.isEditWorker = false; var workerAdd = new WorkerAddForm(); workerAdd.Location = this.Location; workerAdd.StartPosition = FormStartPosition.Manual; workerAdd.FormClosing += delegate { this.Show(); }; workerAdd.Show(); this.Hide(); }
private void lvWorkerList_MouseDoubleClick(object sender, MouseEventArgs e) { string id = lvWorkerList.SelectedItems[0].SubItems[0].Text; WorkerManager.FindWorker(Convert.ToInt32(id)); var workerAdd = new WorkerAddForm(); workerAdd.Location = this.Location; workerAdd.StartPosition = FormStartPosition.Manual; workerAdd.FormClosing += delegate { this.Show(); }; workerAdd.Show(); this.Hide(); }