public UserProfile(Customer customer) { profileConn = new OleDbConnection(connString); this.customer = customer; InitializeComponent(); id = customer.getLoginID(); txtPassword.Text = customer.getPassword(); txtName.Text = customer.getCustomerName(); txtIC.Text = customer.getIC(); txtContactNum.Text = customer.getContactNum(); customerType = customer.getCustomerType(); }
public MainMenu(Customer cust) { customer = cust; InitializeComponent(); lblCustomerID.Text = "Welcome! " + customer.getLoginID(); }