/// <summary> /// This is handler for Open Select Form when Select Button Clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SelectAnotherProductButton_Click(object sender, EventArgs e) { //Create an Object of SelectForm SelectForm selectForm = new SelectForm(); selectForm.previousForm = this; //Hides this ProductInfoForm this.Hide(); //Displays SelectForm when Button is Clicked selectForm.Show(); }
/// <summary> /// This is a handler for Start Button Click Event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void StartButton_Click(object sender, EventArgs e) { //Create an Object of SelectForm SelectForm selectForm = new SelectForm(); selectForm.previousForm = this; //Hides this StartForm this.Hide(); //Displays new SelectForm selectForm.Show(); }