Beispiel #1
0
        /// <summary>
        /// create new select form and show it
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void StartOrderButton_Click(object sender, EventArgs e)
        {
            SelectForm selectForm = new SelectForm();

            selectForm.previousForm = this;
            selectForm.Show();
            this.Hide();
        }
Beispiel #2
0
 /// <summary>
 /// shows previous form
 /// </summary>
 private void showPreviousForm()
 {
     if (previousForm == null)
     {
         previousForm = new SelectForm();
     }
     previousForm.Show();
     this.Hide();
 }