Example #1
0
        public frmAddSupplier(frmSupplier frmSup, clsSupplier supplier)
        {
            InitializeComponent();
            frmListSupplier = frmSup;

            if (supplier != null)
            {
                txtID.Text           = Convert.ToString(supplier.ID);
                txtSupplierName.Text = supplier.Name;
                txtAddress.Text      = supplier.Address;
                txtTown.Text         = supplier.Town;
                txtPostCode.Text     = supplier.Postcode;
                txtContactName.Text  = supplier.ContactName;
                txtContactNo.Text    = supplier.ContactNumber;

                btnAdd.Text = "Edit";
            }
        }
Example #2
0
        private void btnSupplier_Click(object sender, EventArgs e)
        {
            frmSupplier showForm = new frmSupplier();

            showForm.Show();
        }