Exemplo n.º 1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();
            processManager = new gxtProcessManager();
            processManager.Initialize();

            DummyProcess proc0 = new DummyProcess(TimeSpan.FromSeconds(3.0), gxtVerbosityLevel.SUCCESS, "green message for three seconds");
            DummyProcess proc1 = new DummyProcess(TimeSpan.FromSeconds(3.0), gxtVerbosityLevel.CRITICAL, "red message for three seconds");
            DummyProcess proc2 = new DummyProcess(TimeSpan.FromSeconds(3.0), gxtVerbosityLevel.INFORMATIONAL, "white message for three seconds");

            proc0.SetNextProcess(proc1).SetNextProcess(proc2);
            processManager.Add(proc0);
        }