예제 #1
0
        public EditEmployee(int id, IProcessInterface process)
        {
            InitializeComponent();
            EmployeId = id;

            var employee = process.GetEmployeeWithId(id);

            textBox1.Text = employee.First_Name;
            textBox2.Text = employee.Last_Name;
            textBox3.Text = employee.Email;
            textBox4.Text = employee.Salary.ToString();
            textBox5.Text = employee.Phone_Number.ToString();


            var allDept = process.Alldepartment();

            foreach (var item in allDept)
            {
                comboBox1.Items.Add(item.Department_Name);
            }
        }