Пример #1
0
        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");
            }
        }
Пример #2
0
        private void designationButton_Click(object sender, EventArgs e)
        {
            NewDesignation aDesignation = new NewDesignation();

            aDesignation.Show();
        }