Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Start Application");

            var statemachine = new CategoryTreeTransitionWorkflow();

            statemachine.Setup();
            statemachine.Start();

            Console.WriteLine("End StartUp");


            Console.WriteLine("Fire TRNS_TOPSCREEN");
            statemachine.Fire(Events.TRNS_TOPSCREEN, null);

            Thread.Sleep(1000 * 1);

            Console.WriteLine("Fire TRNS_BACK");
            statemachine.Fire(Events.TRNS_BACK, null);

            Thread.Sleep(1000 * 1);

            Console.WriteLine("End Application");
        }
Ejemplo n.º 2
0
 public override void OnResume()
 {
     mWorkflow.Start();
     CompleteStart();
 }