public WebshopForm(LoginForm loginForm, Customer customer) { this.client = new WebshopServiceClient(); this.loginForm = loginForm; this.customer = customer; InitializeComponent(); // Set title this.Name += $" - logged in as {customer.Username}"; // Set money moneyLabel.Text += customer.Credit; // Set shop inventory RefreshAll(); }
public LoginForm() { client = new WebshopServiceClient(); InitializeComponent(); }