private void bunifuFlatButton5_Click(object sender, EventArgs e) { var test = new InventoryForm(); test.Closed += (s, args) => this.Close(); test.Show(); this.Hide(); }
// back button click private void BackButtonClick(object sender, EventArgs e) { if (inventoryDetailsGrid.RowCount > 0) { MessageBox.Show("Please Remove All Data First"); } else { var test = new InventoryForm(); test.Closed += (s, args) => this.Close(); test.Show(); this.Hide(); } }