Ejemplo n.º 1
0
        public static void AddInstallation(/*DateTime installdate*/ string technicianName /*, int clientproductid*/)
        {
            int technician = 0;
            List <Personnel> technicianList = Personnel.GetTechnicians();

            foreach (Personnel item in technicianList)
            {
                if (technicianName.Contains(item.FirstName) && technicianName.Contains(item.LastName))
                {
                    technician = item.EmployeeNumber;
                    MessageBox.Show(technician.ToString());
                }
            }

            //Data.AddInstallation(installdate, technician, clientproductid);
        }