示例#1
0
        public void openUpdateWorkerForm()
        {
            WorkerTicketBLL worker = getWorkerFromTextBoxes();

            getDaysForWorkerFromList(ref worker);
            WorkerEditForm edit = new WorkerEditForm(worker);

            edit.ShowDialog();
            getListOfWorkers();
            reloadWorkerGrid();
        }
示例#2
0
 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();
 }