Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            orderDetailsForm orderdetailform = new orderDetailsForm("");

            orderdetailform.Show();
        }
Example #2
0
        private void DietBox_OrderBtnClick(object sender, EventArgs e)
        {
            var    btn  = (dietBox)sender;
            string name = btn.Name;

            this.Close();
            orderDetailsForm orderdetailsform = new orderDetailsForm(name);

            orderdetailsform.Show();
        }