private void btnInsertTech_Click(object sender, EventArgs e) { string name = txtTechName.Text; string surname = txtTechSurname.Text; string deployed = txtTechDeployed.Text; string deployeDate = txtTechDeployDate.Text; string specialization = cmbSpecialization.Text; TechnicalStaff ts = new TechnicalStaff(); ts.InsertTechnical(name, surname, specialization); FormManagement fm = new FormManagement(); fm.RefreshPage(); this.Close(); }
private void btnUpdateOrder_Click(object sender, EventArgs e) { int id = int.Parse(lblTechID.Text); string name = txtTechName.Text; string surname = txtTechSurname.Text; string specialization = cmbSpecialization.Text; string deployed = txtTechDeployed.Text; string deploymentDate = dtpDeployDate.Value.ToString("dd/MM/yyyy"); TechnicalStaff ts = new TechnicalStaff(); ts.UpdateBLTechnical(id, name, surname, specialization, deployed, deploymentDate); MessageBox.Show(deploymentDate); FormManagement fm = new FormManagement(); fm.RefreshPage(); UpdateTechForm utf = new UpdateTechForm(); utf.Close(); }