Ejemplo n.º 1
0
        public void DisplayEventLog()
        {
            var eveLog = DatabaseConnector.Instance.GetEventLog();

            patientNode.Nodes.Clear();
            bedsideNode.Nodes.Clear();
            moduleNode.Nodes.Clear();

            foreach (string[] log in eveLog)
            {
                EventLogNode eLog = new EventLogNode(log);

                switch (eLog.eventType)
                {
                case "patient":
                    patientNode.Nodes.Add(eLog);
                    break;

                case "bedside":
                    bedsideNode.Nodes.Add(eLog);
                    break;

                case "module":
                    moduleNode.Nodes.Add(eLog);
                    break;
                }
            }


            patientNode.Expand();
            bedsideNode.Expand();
            moduleNode.Expand();
        }
Ejemplo n.º 2
0
        public RegisterControl()
        {
            InitializeComponent();

            patientNode = new EventLogNode("patient");
            bedsideNode = new EventLogNode("bedside");
            moduleNode  = new EventLogNode("module");
            eventLog.Nodes.AddRange(new[] { patientNode, bedsideNode, moduleNode });
        }