//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- private void editButton_Click(object sender, EventArgs e) { this.Hide(); editInventoryForm editForm = new editInventoryForm(); editForm.Show(); }
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //This button allows us to switch to the edit form private void SwitchToEdit_Click(object sender, EventArgs e) { connection.Close(); this.Hide(); editInventoryForm editForm = new editInventoryForm(); editForm.Show(); }