private void insertLocationButton_Click_1(object sender, EventArgs e) { string row = rowTextbox.Text; string col = colTextbox.Text; string shelf = shelfTextbox.Text; string section = sectionTextbox.Text; if (this.validateInput(row, col, shelf, section)) { ValueObject.Location location = new ValueObject.Location(int.Parse(bookIdTextbox.Text), int.Parse(row), int.Parse(col), int.Parse(shelf), int.Parse(section)); int res = locationBll.Insert(location); if (res != 0) { MessageBox.Show("Insert succeeded"); this.Close(); } } }
public UpdateLocation(ValueObject.Location location) { InitializeComponent(); this.location = location; }