private void BtnSaveUpdateEmp(object sender, RoutedEventArgs e)
        {
            if (!(txtEmpId.Text.Equals("") || txtLast.Text.Equals("") || txtFName.Text.Equals("") || txtTitle.Text.Equals("") || txtIDNo.Text.Equals("") || txtAddress.Text.Equals("") || txtReportTo.Text.Equals("") || txtEmail.Text.Equals("") || txtUserName.Text.Equals("") || txtPass.Password.Equals("") || txtEmPositionId.Text.Equals("")))
            {
                Employee emp = new Employee();
                emp.EmpID              = Int32.Parse(txtEmpId.Text);
                emp.LastName           = txtLast.Text;
                emp.FirstName          = txtFName.Text;
                emp.Title              = txtTitle.Text;
                emp.IDNo               = txtIDNo.Text;
                emp.Address            = txtAddress.Text;
                emp.ReportTo           = Int32.Parse(txtReportTo.Text);
                emp.Email              = txtEmail.Text;
                emp.Username           = txtUserName.Text;
                emp.Password           = txtPass.Password;
                emp.EmployeePositionID = Int32.Parse(txtEmPositionId.Text);

                da.EditEmployees(emp);

                MessageBox.Show("Employee Details Updated");

                MainWindow mw = Application.Current.Windows.OfType <MainWindow>().FirstOrDefault();
                if (mw != null)
                {
                    mw.MainFrame.Content = new ManageEmployees();
                }
            }
        }