Beispiel #1
0
        private void btPrint_Click(object sender, EventArgs e)
        {
            int iCompany    = (int)cbxCompany.SelectedValue;
            int iDepartment = -1;

            if (cbxDepartment.Enabled)
            {
                iDepartment = (int)cbxDepartment.SelectedValue;
            }
            frmEmployeeReport frmEmpl = new frmEmployeeReport(iCompany, iDepartment);

            frmEmpl.ShowDialog(this);
        }
Beispiel #2
0
 private void btPrint_Click(object sender, EventArgs e)
 {
     int iCompany = (int)cbxCompany.SelectedValue;
     int iDepartment = -1;
     if (cbxDepartment.Enabled)
         iDepartment = (int)cbxDepartment.SelectedValue;
     frmEmployeeReport frmEmpl = new frmEmployeeReport(iCompany, iDepartment);
     frmEmpl.ShowDialog(this);
 }