コード例 #1
0
        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();
        }
コード例 #2
0
 public MainMenu(Customer cust)
 {
     customer = cust;
     InitializeComponent();
     lblCustomerID.Text = "Welcome! " + customer.getLoginID();
 }