示例#1
0
        private void vendorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Global.formToOpen = "FrmVendorMaintenance";
            FrmVendorListing frmVendorListing = new FrmVendorListing();

            frmVendorListing.ShowDialog();
        }
示例#2
0
        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();
        }
示例#3
0
 public FrmVendorMaintenance(FrmVendorListing frm)
 {
     InitializeComponent();
     frmVendorListing = frm;
 }