示例#1
0
        private bool checkPluginControlAuthorisation(Plugin aSender, Plugin aReceiver)
        {
            if (aSender == null)
            {
                return true;
            }

            try
            {
                return webControlManager.CheckPermission(aSender.ID, aReceiver.ID);
            }
            catch
            {
                return false;
            }
        }
示例#2
0
 void mCore_SpeechRecognizedCoreEvent(Plugin pluginTriggered)
 {
     try
     {
         labelStatusInStatusStrip.Text = pluginTriggered.Name + " was triggered.";
         labelStatusInStatusStrip.UpdateLayout();
     }
     catch
     {
         // Telerik RadControls, dude... failing for some reason
     }
 }