Exemple #1
0
        private void combobox1_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            listboxEmployeData.Items.Clear();

            string title;

            title = combobox1.SelectedValue.ToString();
            EmployeeViewModel[] employees = DataGateway.SelectEmployeesByTitle(title);

            foreach (EmployeeViewModel emp in employees)
            {
                listboxEmployeData.Items.Add(emp.FullName);
            }
        }