Esempio n. 1
0
        private void delete_Click(object sender, EventArgs e)
        {
            PaymentData  pd = new PaymentData();
            EmployeeData ed = new EmployeeData();

            if ((ed.DeleteEmployee(metroTextBox3.Text) == true) && (pd.DeleteEmployeePayment(metroTextBox3.Text) == true))
            {
                MessageBox.Show("Employee info deleted");
                Init();
            }
            else
            {
                MessageBox.Show("Something wrong");
            }
        }