// 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(); }
// Constructor // takes EventDatabase to run queries on public FormQuery(EventDatabase db) { InitializeComponent(); eventDB = db; }