private void btnReport_Click(object sender, EventArgs e)
 {
     try
     {
         dataX d = new dataX(dateTimeFrom.Text, dateTimeTo.Text, "", comFactory.Text);
         MainForm.displayCompanyReport(gridControl1, d, "تقرير  تفاصيل مبيعات الشركات");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void btnReport_Click(object sender, EventArgs e)
 {
     try
     {
         dataX d = new dataX(dateTimeFrom.Text, dateTimeTo.Text, comDelegate.Text, comFactory.Text);
         MainForm.displayDelegateReport2(GridControl1, "", d);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }