コード例 #1
0
        protected void ButtonSearch_Click(object sender, EventArgs e)
        {
            string department = this.DropDownListDepartments.SelectedValue;
            DepartmentSelectedEventArgs args = new DepartmentSelectedEventArgs(department);

            DepartmentSelected?.Invoke(this, args);
        }
コード例 #2
0
        private void OnDepartmentSelected(object sender, DepartmentSelectedEventArgs e)
        {
            string department = e.Department;
            var    employees  = this.Repository.GetEmployees(department);

            this.View.BindEmployees(employees);
        }