public void openUpdateWorkerForm() { WorkerTicketBLL worker = getWorkerFromTextBoxes(); getDaysForWorkerFromList(ref worker); WorkerEditForm edit = new WorkerEditForm(worker); edit.ShowDialog(); getListOfWorkers(); reloadWorkerGrid(); }
public void openEditForm() { if (currentUser is StudentTicketBLL) { StudentEditForm form = new StudentEditForm(currentUser as StudentTicketBLL); form.Show(); } else if (currentUser is WorkerTicketBLL) { WorkerEditForm form = new WorkerEditForm(currentUser as WorkerTicketBLL); form.ShowDialog(); } loadInfo(); }