private void newPurchaseOrderToolStripMenuItem_Click(object sender, EventArgs e) { PODetailForm newPurchaseOrderForm = new PODetailForm(); newPurchaseOrderForm.MdiParent = this; newPurchaseOrderForm.Show(); }
public POItemEntryForm(purposeType purpose, PODetailForm detailForm) { InitializeComponent(); Purpose = purpose; DetailForm = detailForm; if (purpose == purposeType.Add) { BtReturn.Text = "Add New Item"; Text = "A New Purchase Order Item Entry"; } else { BtReturn.Text = "Return Changes"; Text = "Edit the Purchase Order Item"; } }
public POMasterForm(PODetailForm detailForm) { InitializeComponent(); DetailForm = detailForm; List <RSAF_TYPE> listType = new List <RSAF_TYPE>(); var a = new RsafDbContext(); listType = a.RSAF_TYPE.ToList(); a.Dispose(); CxTYPE.DataSource = listType; CxTYPE.DisplayMember = "TYPE"; CxTYPE.ValueMember = "TYPE_CODE"; List <RSAF_SITE> listSite = new List <RSAF_SITE>(); var b = new RsafDbContext(); listSite = b.RSAF_SITE.ToList(); b.Dispose(); CxSITE.DataSource = listSite; CxSITE.DisplayMember = "SITE"; CxSITE.ValueMember = "SITE_CODE"; }