public projectsPopup(client.projectInvoiceAndAdjustmentMaintenance.Form1 inParentForm) { InitializeComponent(); parentForm = inParentForm; ctDynamicsSL.project.flexibleBillings.input.projectInvoiceAndAdjustmentMaintenance.PJPROJ[] myProjects = parentForm.myIAMService.getProjectsByID(parentForm.tbProjectID.Text.Trim()); this.gvProjects.AutoGenerateColumns = true; this.gvProjects.DataSource = myProjects; }
public invoicesPopup(client.projectInvoiceAndAdjustmentMaintenance.Form1 inParentForm) { InitializeComponent(); parentForm = inParentForm; ctDynamicsSL.project.flexibleBillings.input.projectInvoiceAndAdjustmentMaintenance.PJINVHDR[] myInvoices = parentForm.myIAMService.getDraftNumbersByProject(parentForm.tbProjectID.Text.Trim(), parentForm.tbDraftNum.Text.Trim()); this.gvInvoices.AutoGenerateColumns = true; this.gvInvoices.DataSource = myInvoices; }