public override void HandleAnesthesiaMachineEvent(CDM.enumAnesthesiaMachineEvent.value type, bool active, biogears.SEScalarTime time)
        {
            if (g_event_count++ % 31 != 0)
            {
                return;
            }

            Console.WriteLine(@"");
            Console.WriteLine(@"                           (_)");
            Console.WriteLine(@"            --""-------   0/      ^^");
            Console.WriteLine(@"  .___...../ /__| |__\ \_/H__,      ^^");

            string ev        = ToString(type);
            var    marquee_1 = new StringBuilder(@"                        |");
            var    marquee_2 = new StringBuilder(@"                        /");
            string prefix_1  = @"|";
            string prefix_2  = @"\";
            string end_1     = "|";
            string end_2     = "/";


            string state = (active) ? "(On)" : "(Off)";

            if (ev.Length < marquee_1.Length)
            {
                marquee_1.Remove((marquee_1.Length / 2) - (ev.Length / 2), ev.Length);
                marquee_1.Insert((marquee_1.Length / 2) - (ev.Length / 2), ev);
            }
            else
            {
                marquee_1 = new StringBuilder(ev);
            }
            if (state.Length < marquee_2.Length)
            {
                marquee_2.Remove((marquee_2.Length / 2) - (state.Length / 2), state.Length);
                marquee_2.Insert((marquee_2.Length / 2) - (state.Length / 2), state);
            }
            else
            {
                marquee_1 = new StringBuilder(state);
            }
            Console.WriteLine(prefix_1 + marquee_1 + end_1);
            Console.WriteLine(prefix_2 + marquee_2 + end_2);

            Console.WriteLine(@"#####^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~\O/~~\Q/~^~^~rr\n");
            Console.WriteLine("\n");
        }
        public override void HandlePatientEvent(CDM.enumPatientEvent.value type, bool active, biogears.SEScalarTime time)
        {
            if (g_event_count++ % 31 != 0)
            {
                return;
            }

            Console.WriteLine("\n");
            Console.WriteLine("  OO O o o o...      _______________________________________ ");
            Console.WriteLine("  O     ____          |                                      |");

            string ev        = ToString(type);
            var    marquee_1 = new StringBuilder("                                      ");
            var    marquee_2 = new StringBuilder("                                      ");
            string prefix    = " ][_n_i_| (   ooo___  |";
            string end       = "|";


            string state = (active) ? "(On)" : "(Off)";

            if (ev.Length < marquee_1.Length)
            {
                marquee_1.Remove((marquee_1.Length / 2) - (ev.Length / 2), ev.Length);
                marquee_1.Insert((marquee_1.Length / 2), ev);
            }
            else
            {
                marquee_1 = new StringBuilder(ev);
            }
            if (state.Length < marquee_2.Length)
            {
                marquee_2.Remove((marquee_2.Length / 2) - (state.Length / 2), state.Length);
                marquee_2.Insert((marquee_2.Length / 2), state);
            }
            else
            {
                marquee_1 = new StringBuilder(state);
            }
            Console.WriteLine(prefix + marquee_1 + end);
            Console.WriteLine(prefix + marquee_2 + end);
            Console.WriteLine("(__________|_[______]_|______________________________________|");
            Console.WriteLine("  0--0--0      0  0      0       0     0        0        0    ");
            Console.WriteLine("\n");
        }