private void addButton_Click(object sender, EventArgs e) { NewDesignation aDesignation = new NewDesignation(); aDesignation.Name = designationTextBox.Text; DesignationManager aDesignationManager = new DesignationManager(); if (aDesignationManager.SaveAll(aDesignation)) { MessageBox.Show("Designation Sucessfully Added"); } else { MessageBox.Show("Error"); } }
private void designationButton_Click(object sender, EventArgs e) { NewDesignation aDesignation = new NewDesignation(); aDesignation.Show(); }