Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }