コード例 #1
0
 protected virtual void OnContextMenuInstanceEntryClick(object sender, InstanceEntryClickArgs e)
 {
   MouseClickInformation clickInfo = e.ClickInformation;
   if (clickInfo.OnlyLeftMouseButtonPressed)
   {
     bool useBackendBrowser = TrayPluginSettingsManager.OpenPagesInBackendBrowser;
     string suffix = TrayPluginSettingsManager.PageToRunOnClick;
     Instance instance = e.Instance;
     InstanceHelperEx.BrowseInstance(instance, MainWindow.Instance, suffix, !useBackendBrowser);
   }
 }
コード例 #2
0
 public virtual void OnInstanceClick(object sender, InstanceEntryClickArgs args)
 {
     MouseClickInformation clickDetails = args.ClickInformation;
       this.ActualMappings.HandleEvent(ClickHandlersMappings.InstanceClickKey, new ClickDetailsWrapper(clickDetails, args.Instance, args));
 }