Ejemplo n.º 1
0
        public void Reset(int Type)
        {
            switch (Type)
            {
            case 1:
                Session["customer"] = Samples.CreateSampleCustomer1();
                Session["machine"]  = Samples.CreateSampleVendingMachine1();
                break;

            case 2:
                Session["customer"] = Samples.CreateSampleCustomer2();
                Session["machine"]  = Samples.CreateSampleVendingMachine2();
                break;

            case 3:
                Session["customer"] = Samples.CreateSampleCustomer3();
                Session["machine"]  = Samples.CreateSampleVendingMachine3();
                break;
            }

            X.Js.Call("Reload");
        }