private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = new SampleTestControl(); TestPlugin.TestPluginReady += delegate(object dummy, EventArgs args) { TestLogger.LogDebug("Hello!"); TestPlugin.CaptureSingleImage("SampleTest.png", 100, 100, 0); TestPlugin.SignalShutdown(); }; }