private void Skype_PluginMenuItemClicked(PluginMenuItem pluginmenuitem, UserCollection usercollection, TPluginContext plugincontext, string contextid) { this.Logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name); }
public void OurPluginMenuItemClicked(PluginMenuItem pluginmenuitem, UserCollection usercollection, TPluginContext plugincontext, string contextid) { // Always use try/catch with ANY Skype calls. try { // Write Plugin Menu Item Clicked to Window. AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " + "Plugin Menu Item Clicked - Id: " + pluginmenuitem.Id + " - User Count: " + usercollection.Count + " - Context: " + plugincontext + " - Context Id: " + contextid + "\r\n"); } catch (Exception e) { // Possibly old Skype4COM version, log an error, drop into debug if wanted. AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " + "Plugin Menu Item Clicked Event Fired - Bad Text" + " - Exception Source: " + e.Source + " - Exception Message: " + e.Message + "\r\n"); // If the "Use Auto Debug" check box is checked and we are in debug, drop into debug here when retry, otherwise, prompt for action. Debug.Assert(!this.UseAutoDebug.Checked); } }