public frmNewCertificate(frmMain mainFrm)
 {
     InitializeComponent();
     this.mainFrm = mainFrm;
     this.companyData = mainFrm.GetCompanyData();
     comboBox1.Text = "0";
     try
     {
         _capture = new Capture();
         _capture.ImageGrabbed += ProcessFrame;
     }
     catch (NullReferenceException excpt)
     {
         MessageBox.Show(excpt.Message);
     }
     try
     {
         _capture1 = new Capture(1);
         _capture1.ImageGrabbed += ProcessFrame1;
     }
     catch (NullReferenceException excpt)
     {
         //MessageBox.Show(excpt.Message);
     }
 }
 public void SetDataBindings(CompanyData companyData,
     CustomerData customerData,
     CustomerDataTableList customerDataTable)
 {
     CompanyDataList tmpCompanyData = new CompanyDataList();
     CustomerDataList tmpCustomerData = new CustomerDataList();
     tmpCompanyData.AddData(companyData);
     tmpCustomerData.AddData(customerData);
     this.CompanyDataBindingSource.DataSource = tmpCompanyData.GetCompanyData();
     this.CustomerDataBindingSource.DataSource = tmpCustomerData.GetCustomerData();
     this.CustomerDataTableBindingSource.DataSource = customerDataTable.GetCustomerDataTable();
     reportViewer1.LocalReport.EnableExternalImages = true;
     reportViewer1.LocalReport.DisplayName = customerData.VehNo.ToString();
     Refresh1();
 }
 public void AddData(CompanyData data)
 {
     companyData.Add(data);
 }