Esempio n. 1
0
 private void button14_Click(object sender, EventArgs e)
 {
     this._vendor_list = new uc_vendor_list();
     panel_body.Controls.Clear();
     panel_body.Controls.Add(this._vendor_list);
     lbl_current_tab.Text = "Vendors";
 }
Esempio n. 2
0
        public frm_add_vendors(uc_vendor_list Vendors, int vendor_id)
        {
            InitializeComponent();
            _vendors   = Vendors;
            _vendor_id = vendor_id;
            VendorRepository vendorRepository = new VendorRepository();
            var vendor = vendorRepository.getById(_vendor_id);

            txt_vendorName.Text    = vendor.VendorName;
            txt_address.Text       = vendor.Address;
            txt_contactNumber.Text = vendor.ContactNumber;
            txt_email.Text         = vendor.EmailAddress;
            txt_tags.Text          = vendor.Tags;
        }
Esempio n. 3
0
 public frm_add_vendors(uc_vendor_list Vendors)
 {
     InitializeComponent();
     this._vendors = Vendors;
 }