public static RibbonButton button(this WPF_Ribbon wpfRibbon, string tabHeader, string groupHeader, string buttonLabel) { var tab = wpfRibbon.Ribbon.tab(tabHeader); var group = tab.group(groupHeader); return(group.button(buttonLabel)); }
public static WPF_Ribbon add_Tabs(this WPF_Ribbon wpfRibbon, params string[] titles) { foreach (var title in titles) { wpfRibbon.add_Tab(title); } return(wpfRibbon); }
public static WPF_Ribbon title(this WPF_Ribbon wpfRibbon, string title) { wpfRibbon.invokeOnThread(() => { var label = new System.Windows.Controls.Label(); label.Content = title; label.FontSize = 10; label.Padding = new System.Windows.Thickness(0, 0, 0, 0); wpfRibbon.Ribbon.Title = label; }); return(wpfRibbon); }
public static WPF_Ribbon add_Tab_BrowserAutomation(this WPF_Ribbon ribbon) { var browserAutomation = ribbon.add_Tab("Browser Automation"); browserAutomation.add_RibbonGroup("IE Script development environments") .add_RibbonButton_Script("IE Automation", "ascx_IE_ScriptExecution.cs") .add_RibbonButton_H2Script("IE Automation Development", "IE Automation using WatiN.h2") .add_RibbonButton_H2Script("WatiN Recorder", "WatiN - Open 'Test Recorder' in new process.h2"); browserAutomation.add_RibbonGroup("Javascript") .add_RibbonButton_H2Script("XSS PoC Builder", "Web - XSS PoC Builder.h2") .add_RibbonButton_H2Script("Javascript AST Viewer", "Web - Javascript AST Viewer.h2") .add_RibbonButton_H2Script("JavaScript Stats Viewer", "Web - JavaScript Stats Viewer.h2"); browserAutomation.add_RibbonGroup("Html") .add_RibbonButton_H2Script("Html Tag Viewer", "ascx_HtmlTagViewer.cs") .add_RibbonButton_H2Script("View WebPage details", "ascx_View_WebPage_Details.cs.o2") .add_RibbonButton_H2Script("Quick HtmlCode Viewer", "Quick HtmlCode Viewer.h2") .add_RibbonButton_H2Script("Simple Html Viewer", "Util - Simple Html Viewer.h2") .add_RibbonButton_H2Script("Html Editor", "ascx_Html_Editor.cs.o2"); return(ribbon); }
public static WPF_Ribbon add_Tab_MiscTools(this WPF_Ribbon ribbon) { var miscTools = ribbon.Ribbon.add_RibbonTab("Misc Tools"); miscTools.add_RibbonGroup("Media Tools") .add_RibbonButton_H2Script("open ScreenShot tool (Cropper)", "Util - Show ScreenShot Tool.h2") .add_Button("save Image From Clipboard (to temp file)", () => 0.saveImageFromClipboard()) .add_Button("save Image From Clipboard (to user's location)", () => "".saveImageFromClipboardToFile()); miscTools.add_RibbonGroup("Media Tools") .add_RibbonButton_H2Script("Image Editor", "Util - DiagramDesigner Editor.h2") .add_RibbonButton_H2Script("Movie Creator", "Util - Movie Creator (Simple).h2"); miscTools.add_RibbonGroup("Files Utils") .add_RibbonButton_H2Script("Map Files by Extension", "Util - File Mapping (by extension).h2") .add_RibbonButton_H2Script("Quick File Search", "Util - Quick File Search.h2") .add_RibbonButton_H2Script("Quick File Viewer", "Util - Quick File Viewer.h2") .add_RibbonButton_H2Script("Simple Text Editor", "Util - Simple Text Editor.h2") .add_RibbonButton_H2Script("Search Engine", "Search Engine Tool.h2"); miscTools.add_RibbonGroup("O2 Utils") .add_Script("Execute Scripts", "Util - Execute O2 Scripts.h2") .add_RibbonButton_Script("Quick development GUI", "ascx_Quick_Development_GUI.cs.o2") .add_RibbonButton_Script("IE Automation", "ascx_IE_ScriptExecution.cs") .add_RibbonButton_H2Script("CSharp String Encoder", "CSharp_String_Encoder.h2"); miscTools.add_RibbonGroup("Windows Processes and Services") .add_Script("Stop Processes", "ascx_Processes_Stop.cs.o2") .add_Script("View Running Process Details", "ascx_Running_Processes_Details.cs.o2") .add_Script("Stop Services", "ascx_Services_Stop.cs.o2"); var currentScript = PublicDI.CurrentScript; miscTools.add_RibbonGroup("This Custom O2") .add_RibbonButton("Edit this Custom O2 Script", () => O2Gui.open <System.Windows.Forms.Panel>("Custom O2", 800, 400) .add_SourceCodeEditor() .open(currentScript)) .add_RibbonButton_H2Script("Open a Log Viewer window", "Util - LogViewer.h2"); return(ribbon); }
public static WPF_Ribbon add_Group_developmentGuis(this WPF_Ribbon ribbon, string tabName) { ribbon.tab(tabName).add_Group_developmentGuis(); return(ribbon); }
public static RibbonGroup group(this WPF_Ribbon wpfRibbon, string tabHeader, string groupHeader) { var tab = wpfRibbon.Ribbon.tab(tabHeader); return(tab.group(groupHeader)); }
public static RibbonTab tab(this WPF_Ribbon wpfRibbon, string header) { return(wpfRibbon.Ribbon.tab(header)); }
public static List <RibbonTab> tabs(this WPF_Ribbon wpfRibbon) { return(wpfRibbon.Ribbon.tabs()); }
// helper methods (to make the api easy to use) public static RibbonTab add_Tab(this WPF_Ribbon wpfRibbon, string title) { return(wpfRibbon.Ribbon.add_RibbonTab(title)); }
public static RibbonButton button_Click(this WPF_Ribbon wpfRibbon, string tabHeader, string groupHeader, string buttonLabel) { return(wpfRibbon.Ribbon.button_Click(tabHeader, groupHeader, buttonLabel)); }