Пример #1
0
 private void lboxLocation_SelectedIndexChanged(object sender, EventArgs e)
 {
     WorkingField unit = new WorkingFieldManage().GetWorkingField()[lboxLocation.SelectedIndex];
     lbLocationDescription.Text = unit.Description;
 }
Пример #2
0
        private void ChangeTab(object sender, EventArgs e)
        {
            lboxEmployee.Items.Clear();
            if (tabPage.SelectedTab == tabEmployees)
            {
                EmployeeManagement employeelist = new EmployeeManagement();
                foreach (Employee emp in employeelist.getEmployee())
                {
                    lboxEmployee.Items.Add(emp.Name);
                }
                cbboxServiceSkill.Visible = false;
            }

            lboxServices.Items.Clear();
            if(tabPage.SelectedTab == tabServices)
            {
                foreach(Services ser in Program.service.getAllServices())
                {
                    lboxServices.Items.Add(ser.Name);
                }
            }

            lboxLocation.Items.Clear();
            if (tabPage.SelectedTab == tabWorkingField)
            {
                WorkingFieldManage unitlist = new WorkingFieldManage();
                foreach (WorkingField unit in unitlist.GetWorkingField())
                {
                    lboxLocation.Items.Add(unit.Name);
                }
            }
        }