private void Place_Order_button_Click(object sender, EventArgs e) { // open order window // hide main form this.Hide(); // show other form var Books = new BookStoreForm(); Books.RefToForm1 = this; Books.ShowDialog(); }
private void bookStoreToolStripMenuItem_Click_1(object sender, EventArgs e) { BookStoreForm bookStore = new BookStoreForm(); bookStore.ShowDialog(); }