예제 #1
0
        // Form constructor
        public FormMonitor()
        {
            // Build GUI
            InitializeComponent();

            // setup event between Watcher and Form
            Watcher.WatcherEvent = new WatcherEventHandler(EH_MonitorEvent);

            // Create buffer
            eventBuffer = new WatcherEventBuffer();

            // create DB obj (not connected to anything)
            eventDB = new EventDatabase();
        }
예제 #2
0
파일: FormQuery.cs 프로젝트: Droo-k6/School
        // Constructor
        // takes EventDatabase to run queries on
        public FormQuery(EventDatabase db)
        {
            InitializeComponent();

            eventDB = db;
        }