/// <summary>
        /// Event Handler for Next Button CLick
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NextButton_Click(object sender, EventArgs e)
        {
            ProductInfoForm productInfoForm = new ProductInfoForm();

            productInfoForm.previousForm = this;

            this.Hide();

            productInfoForm.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// This is a handler for Open Button Click Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OpenButton_Click(object sender, EventArgs e)
        {
            //Create an Object of ProductInfoForm
            ProductInfoForm productInfoForm = new ProductInfoForm();

            //Close this StartForm
            this.Close();

            //Displays new ProductInfoForm
            productInfoForm.Show();
        }
Esempio n. 3
0
        /// <summary>
        /// This is handler for Back Button CLick event that sends you back into ProductInfoForm
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BackButton_Click(object sender, EventArgs e)
        {
            //Create an Instance of ProductInfoForm
            ProductInfoForm productInfoForm = new ProductInfoForm();

            productInfoForm.previousForm = this;

            //It will hide this OrderForm
            this.Hide();

            //Shows the back ProductInfoForm
            productInfoForm.Show();
        }