private bool checkPluginControlAuthorisation(Plugin aSender, Plugin aReceiver) { if (aSender == null) { return true; } try { return webControlManager.CheckPermission(aSender.ID, aReceiver.ID); } catch { return false; } }
void mCore_SpeechRecognizedCoreEvent(Plugin pluginTriggered) { try { labelStatusInStatusStrip.Text = pluginTriggered.Name + " was triggered."; labelStatusInStatusStrip.UpdateLayout(); } catch { // Telerik RadControls, dude... failing for some reason } }