private void vendorToolStripMenuItem_Click(object sender, EventArgs e) { Global.formToOpen = "FrmVendorMaintenance"; FrmVendorListing frmVendorListing = new FrmVendorListing(); frmVendorListing.ShowDialog(); }
public void LoadVendors() { rbVendorName.Checked = true; List <tblvendor> lstVendor = _vendorService.GetVendors(); var vendorBindingList = new BindingList <tblvendor>(lstVendor); var vendorBindingSource = new BindingSource(vendorBindingList, null); dgLoadVendors.Columns.Clear(); dgLoadVendors.DataSource = vendorBindingSource; dgLoadVendors.Columns["VendorId"].Visible = false; dgLoadVendors.Columns["VendorCode"].HeaderText = "Vendor Code"; dgLoadVendors.Columns["VendorName"].HeaderText = "Vendor Name"; dgLoadVendors.Columns["IsDeleted"].Visible = false; //dgLoadVendors.Columns["MiddleName"].HeaderText = "Middle Name"; //dgLoadVendors.Columns["LastName"].HeaderText = "Last Name"; dgLoadVendors.ReadOnly = true; FrmVendorListing frmVendorListing = new FrmVendorListing(); frmVendorListing.Refresh(); }
public FrmVendorMaintenance(FrmVendorListing frm) { InitializeComponent(); frmVendorListing = frm; }