コード例 #1
0
ファイル: Wendys.cs プロジェクト: CYANURO/Foodprogram
        private void wOrderbutton_Click(object sender, EventArgs e)
        {
            MyGlobals.CustomersName = wCostumersNametextBox.Text;
            MyGlobals.CustomersPhone = wCostumersPhonetextBox.Text;
            MyGlobals.OrderConfirmation = wCalculatetextBox.Text;
            MyGlobals.OrderTax = wTaxtextBox.Text;
            MyGlobals.str_orderTotal = wTotaltextBox.Text;
            MyGlobals.CustomersAddress = wCostumersAddresstextBox.Text;

            Order_Confirmation wCostumersName = new Order_Confirmation();
            wCostumersName.Show();
        }
コード例 #2
0
ファイル: Mcdonalds.cs プロジェクト: CYANURO/Foodprogram
        private void Orderbutton_Click(object sender, EventArgs e)
        {
            MyGlobals.CustomersAddress = mdcCostumersAddresstextBox.Text;
            MyGlobals.CustomersName = mdcCostumersNametextBox.Text;
            MyGlobals.CustomersPhone = mdcCostumersPhonetextBox.Text;
            MyGlobals.OrderConfirmation = mdcCalculatetextBox.Text;
            MyGlobals.OrderTax = mdcTaxtextBox.Text;
            MyGlobals.str_orderTotal = mdcTotaltextBox.Text;

            //Getting customers order items.

            Order_Confirmation oCostumersName = new Order_Confirmation();
            oCostumersName.Show();
        }