Exemplo n.º 1
0
 private void LoadDTOToControl(DTO_Employee dte)
 {
     txt_name.Text   = dte.Name;
     dt_BDay.Value   = dte.Bday;
     dt_StDay.Value  = dte.Stday;
     txt_salary.Text = dte.Salary;
 }
Exemplo n.º 2
0
 private void LoadDTOToControl(DTO_Employee dte)
 {
     txt_name.Text   = dte.Name;
     txt_bDay.Text   = dte.Bday;
     txt_stDay.Text  = dte.Stday;
     txt_salary.Text = dte.Salary;
 }
Exemplo n.º 3
0
 private void loadControlToDTO()
 {
     dem        = new DTO_Employee();
     dem.Name   = txt_name.Text;
     dem.Bday   = dt_BDay.Value;
     dem.Stday  = dt_StDay.Value;
     dem.Salary = txt_salary.Text;
 }
Exemplo n.º 4
0
 private void dataGridView1_Click(object sender, EventArgs e)
 {
     dem        = new DTO_Employee();
     dem.Id     = Convert.ToInt32(dataGridView1.CurrentRow.Cells["col_Id_Em"].Value.ToString());
     dem.Name   = dataGridView1.CurrentRow.Cells["col_Name_Em"].Value.ToString();
     dem.Bday   = dataGridView1.CurrentRow.Cells["col_birth_day"].Value.ToString();
     dem.Stday  = dataGridView1.CurrentRow.Cells["col_start_day"].Value.ToString();
     dem.Salary = dataGridView1.CurrentRow.Cells["col_salary"].Value.ToString();
     LoadDTOToControl(dem);
 }