public addNewResource(user user, location location) { InitializeComponent(); SetUpForm(user, location); }
public void SetUpForm(user user, location location) { currentUser = user; currentLocation = location; updateComboBox(chooseLocationComboBox); }
private void chooseLocationComboBox_SelectedIndexChanged(object sender, EventArgs e) { string locationName = chooseLocationComboBox.SelectedItem.ToString(); currentLocation = location.getLocationWName(locationName); }