public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
 {
     var relevanceProvider = new SimpleDynamicStateProvider(){CurrentRelevanceLevel = RelevanceLevel.Irrelevant};
       this.RelevanceTracker = new RelevanceTracker(relevanceProvider);
       menuAppender.AppentMenuStripItem("Create issue folder based on clipboard", Resources.box_love, this.ProcessClipboardValue, relevanceProvider);
       menuAppender.AppentMenuStripItem("Open issue folders storage", Resources.box, this.OpenStorage);
       return true;
 }
 public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
 {
     menuAppender.AppentMenuStripItem(
     "Short clipboard url",
     Resources.klipperShortedv5,
     this.ShortUrl,
     new SimpleDynamicStateProvider() { CurrentRelevanceLevel = RelevanceLevel.Low });
       menuAppender.AppentMenuStripItem("Handle clipboard value (Clipboard changer)", Resources.processClipboard, this.HandleClipboard, new IsUrlInClipboardWatcher());
       return true;
 }
Beispiel #3
0
        public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
        {
            var relevanceProvider = new SimpleDynamicStateProvider()
            {
                CurrentRelevanceLevel = RelevanceLevel.Irrelevant
            };

            this.RelevanceTracker = new RelevanceTracker(relevanceProvider);
            menuAppender.AppentMenuStripItem("Create issue folder based on clipboard", Resources.box_love, this.ProcessClipboardValue, relevanceProvider);
            menuAppender.AppentMenuStripItem("Open issue folders storage", Resources.box, this.OpenStorage);
            return(true);
        }
 public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
 {
     menuAppender.AppentMenuStripItem(
         "Short clipboard url",
         Resources.klipperShortedv5,
         this.ShortUrl,
         new SimpleDynamicStateProvider()
     {
         CurrentRelevanceLevel = RelevanceLevel.Low
     });
     menuAppender.AppentMenuStripItem("Handle clipboard value (Clipboard changer)", Resources.processClipboard, this.HandleClipboard, new IsUrlInClipboardWatcher());
     return(true);
 }
        public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
        {
            foreach (KeyValuePair<string, string> application in UserConfiguration.Configuration.Applications)
              {
            KeyValuePair<string, string> app = application;
            FileVersionInfo fileVersion = FileVersionInfo.GetVersionInfo(app.Value);
            menuAppender.AppentMenuStripItem(
              fileVersion.ProductName,
              Icon.ExtractAssociatedIcon(app.Value),
              (sender, args) => Process.Start(app.Value));
              }

              return true;
        }
Beispiel #6
0
        public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
        {
            foreach (KeyValuePair <string, string> application in UserConfiguration.Configuration.Applications)
            {
                KeyValuePair <string, string> app = application;
                FileVersionInfo fileVersion       = FileVersionInfo.GetVersionInfo(app.Value);
                menuAppender.AppentMenuStripItem(
                    fileVersion.ProductName,
                    Icon.ExtractAssociatedIcon(app.Value),
                    (sender, args) => Process.Start(app.Value));
            }

            return(true);
        }
        public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
        {
            menuAppender.AppentMenuStripItem("Set Windows language hotkeys", Resources.activehotkeys, this.OnContextMenuClick);

            return(true);
        }
Beispiel #8
0
        public bool FillProvidedContextMenuBuilder(IMenuEntriesAppender menuAppender)
        {
            menuAppender.AppentMenuStripItem("Set Windows language hotkeys", Resources.activehotkeys, this.OnContextMenuClick);

              return true;
        }