Exemple #1
0
        public Department_Frame()
        {
            InitializeComponent();
            this.setTitle("Department Window");

            //var employees = wp.syncEmployee();
            DepartmentModel depart      = new DepartmentModel();
            dynamic         departments = depart.all(depart);

            foreach (var department in departments)
            {
                departmentList.Rows.Add(department.id, department.name, department.description);
            }
            this.labelDepartment.Text = "" + departments.Count;
            //  WebAPI wp = new WebAPI();


            // dynamic departments = wp.syncDepartment("/departments?company_id=1");

            //foreach( var department in departments) {
            //  departmentList.Rows.Add(department.id, department.name, department.description, department.company_id);
            //}
        }