/// <summary> /// Takes us to our book managing page /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void manageBooksButton_Click(object sender, EventArgs e) { form1Var = this; this.Hide(); bookForm bookFormForm = new bookForm(); bookFormForm.InstanceRef = this; bookFormForm.Show(); }
/// <summary> /// Pressing this button takes us to our usual form from project 2 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void placeOrderButton_Click(object sender, EventArgs e) { form1Var = this; this.Hide(); Main_Menu placeOrderForm = new Main_Menu(); placeOrderForm.InstanceRef = this; placeOrderForm.Show(); }
/// <summary> /// From main menu, upon clicking this button takes us to our familiar form from project 4 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void manageCustomersButton_Click(object sender, EventArgs e) { form1Var = this; this.Hide(); editCustomer editCustomerForm = new editCustomer(); editCustomerForm.InstanceRef = this; editCustomerForm.Show(); }