Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

another batch of FluenSharp namespace changes

  • Loading branch information...
commit e3b5a816eb323757977207899567d126d8f15397 1 parent 90e8110
@DinisCruz DinisCruz authored
Showing with 1,680 additions and 1,360 deletions.
  1. +1 −1  3rdParty/Antlr/Antlr_Installer.cs
  2. +1 −1  3rdParty/Apache/Apache_HttpServer_Installer.cs
  3. +1 −2  3rdParty/CheckMarx/2.6.3_WSDL_files/CxEngineWebServices.cs
  4. +0 −1  3rdParty/CheckMarx/2.6.3_WSDL_files/CxManagerWebServices.cs
  5. +0 −1  3rdParty/CheckMarx/API_CxWebClient.cs
  6. +7 −9 3rdParty/CheckMarx/API_IE_CxWebClient.cs
  7. +7 −12 3rdParty/CheckMarx/VistaDB/API_VistaDB.cs
  8. +5 −8 3rdParty/Clojure/API_Clojure.cs
  9. +2 −6 3rdParty/Clojure/Clojure_Installer.cs
  10. +2 −6 3rdParty/EasyHook/API_EasyHook.cs
  11. +4 −5 3rdParty/EasyHook/EasyHook_Installer.cs
  12. +4 −11 3rdParty/Eclipse/API_Eclipse.cs
  13. +3 −12 3rdParty/Fiddler/API_Fiddler.cs
  14. +2 −8 3rdParty/Fiddler/UnitTests_API_Fiddler.cs
  15. +3 −7 3rdParty/Flash/SWFScan_Installer.cs
  16. +4 −5 3rdParty/Fortify/API_Fortify_1_6.cs
  17. +7 −13 3rdParty/FuzzDB/API_FuzzDB.cs
  18. +2 −6 3rdParty/GNU/GnuWin32_Make_Installer.cs
  19. +6 −12 3rdParty/GitHub/API_GitHub.cs
  20. +12 −22 3rdParty/GitHub/API_GitHub_Issues.cs
  21. +8 −18 3rdParty/GitHub/API_GitHub_Objects.cs
  22. +6 −11 3rdParty/GitHub/GitHub - CustomO2.cs
  23. +3 −7 3rdParty/GnuCitizen/BadAssProxy_Installer.cs
  24. +3 −7 3rdParty/GnuCitizen/Proxify_Installer.cs
  25. +0 −7 3rdParty/GoogleDataAPI/API_GoogleDataAPI.cs
  26. +4 −7 3rdParty/GoogleDataAPI/GoogleDataAPI_Installer.cs
  27. +1 −8 3rdParty/ILSpy/API_ILSpy.cs
  28. +2 −6 3rdParty/ILSpy/ILSpy_Installer.cs
  29. +6 −6 3rdParty/ITextSharp/ITextSharp_Installer.cs
  30. +5 −8 3rdParty/ITextSharp/ascx_Create_Links_From_Clipboard.cs
  31. +5 −3 3rdParty/JAD/API_Jad.cs
  32. +4 −4 3rdParty/JAD/Jad_Installer.cs
  33. +2 −7 3rdParty/JabberNet/JabberNet_Installer.cs
  34. +2 −3 3rdParty/Jni4Net/API_Jni4Net.cs
  35. +4 −4 3rdParty/Jni4Net/Jni4Net_Installer.cs
  36. +3 −6 3rdParty/LinqPad/LinqPad_Installer.cs
  37. +5 −6 3rdParty/MarkdownSharp/API_MarkdownSharp.cs
  38. +3 −7 3rdParty/MarkdownSharp/MarkdownSharp_Installer.cs
  39. +5 −11 3rdParty/Microsoft/IIS/API_IIS7.cs
  40. +3 −8 3rdParty/Microsoft/IIS/API_IIS_Logs.cs
  41. +2 −7 3rdParty/Microsoft/IIS/API_IIS_Request.cs
  42. +5 −9 3rdParty/Microsoft/SqlServer/API_SqlServer.cs
  43. +3 −6 3rdParty/MonoCecil/Ascx/ascx_O2Reflector.cs
  44. +4 −4 3rdParty/MonoCecil/AssemblyAnalysisImpl.cs
  45. +3 −4 3rdParty/MonoCecil/CecilDecompiler/CecilDecompiler.cs
  46. +2 −1  3rdParty/MonoCecil/CecilFilteredSignature.cs
  47. +2 −2 3rdParty/MonoCecil/MonoCecil/CecilAssemblyBuilder.cs
  48. +2 −4 3rdParty/MonoCecil/MonoCecil/CecilAssemblyDependencies.cs
  49. +2 −2 3rdParty/MonoCecil/MonoCecil/CecilCodeSearch.cs
  50. +3 −3 3rdParty/MonoCecil/MonoCecil/CecilConvert.cs
  51. +1 −2  3rdParty/MonoCecil/MonoCecil/CecilUtils.cs
  52. +2 −2 3rdParty/MonoCecil/MonoCecil/CreateTestExe.cs
  53. +2 −7 3rdParty/MonoCecil/MonoCecil/StandAloneExe.cs
  54. +2 −2 3rdParty/MonoCecil/O2MonoCecil.cs
  55. +4 −8 3rdParty/NMap/NMap_CmdLine_Installer.cs
  56. +3 −7 3rdParty/NMap/NMap_Installer.cs
  57. +2 −4 3rdParty/Nikto/API_Nikto.cs
  58. +2 −4 3rdParty/NodeJS/API_NodeJS.cs
  59. +2 −6 3rdParty/NodeJS/NodeJS_Exe_Installer.cs
  60. +3 −7 3rdParty/NodeJS/NodeJS_Installer.cs
  61. +2 −6 3rdParty/NodeJS/NodeJS_MSI_Installer.cs
  62. +3 −10 3rdParty/NuGet/API_NuGet.cs
  63. +2 −6 3rdParty/NuGet/NuGet_Installer.cs
  64. +2 −10 3rdParty/OWASP/OWASP_Summit_2011/API_OWASP_Summit_2011.cs
  65. +3 −11 3rdParty/OWASP/WebScarab/API_WebScarab.cs
  66. +3 −8 3rdParty/OWASP/WebScarab/O2AssesmentLoad_WebScarab.cs
  67. +1 −14 3rdParty/OWASP/WebScarab/UnitTests_GUI_API_WebScarab.cs
  68. +7 −10 3rdParty/OWASP/ZAProxy/ZAProxy_Installer.cs
  69. +2 −4 3rdParty/cURL/API_cURL.cs
  70. +4 −7 3rdParty/cURL/cUrl_Installer.cs
  71. +5 −14 APIs/IE/IE_ExecutionGui/API_IE_ExecutionGUI.cs
  72. +3 −7 APIs/IE/IE_ExecutionGui/IE_Google.cs
  73. +557 −557 APIs/MediaWiki/{MediaWikiEditor.cs.o2 → MediaWikiEditor.cs}
  74. +6 −13 APIs/MediaWiki/MediaWiki_GuiControls/ascx_MediaWiki_Backup.cs
  75. +7 −12 APIs/MediaWiki/MediaWiki_GuiControls/ascx_MediaWiki_ConfigAndLogin.cs
  76. +4 −13 APIs/MediaWiki/MediaWiki_GuiControls/ascx_MediaWiki_PageEditor_Simple.cs
  77. +12 −18 APIs/MediaWiki/O2MediaWikiAPI.cs
  78. +3 −9 APIs/MediaWiki/O2PlatformWikiAPI.cs
  79. +1 −8 APIs/MediaWiki/OwaspWikiAPI.cs
  80. +2 −9 APIs/MediaWiki/WikiText.cs
  81. +3 −12 APIs/WPF/API_AvalonDock.cs
  82. +3 −11 APIs/WPF/API_WPF_ToolKit.cs
  83. +8 −13 APIs/WPF/DiagramDesigner/DiagramDesigner_ExtensionMethods.cs
  84. +5 −14 APIs/WPF/DiagramDesigner/DiagramDesigner_NewAppDomain.cs
  85. +1 −11 APIs/WPF/ElementHost_ExtensionMethods.cs
  86. +3 −6 APIs/WPF/Graph/GraphLayout_O2CodeStream_ExtensionMethods.cs
  87. +7 −8 APIs/WPF/Graph/GraphLayout_WPF_ExtensionMethods.cs
  88. +4 −4 APIs/WPF/Graph/GraphSharp_ExtensionMethods.cs
  89. +3 −6 APIs/WPF/Graph/To Import - from O2_API_AST/CodeStreamGraphNode.cs
  90. +0 −11 APIs/WPF/Graph/To Import - from O2_API_AST/CodeStreamGraphNode_ExtensionMethods.cs
  91. +3 −6 APIs/WPF/Graph/VerticesAndEdges_ExtensionMethods.cs
  92. +1 −6 APIs/WPF/Graph/WpfTextEditor.cs
  93. +4 −12 APIs/WPF/MiniFramework/API_MiniFramework.cs
  94. +9 −14 APIs/WPF/WPF_GUI.cs
  95. +7 −21 APIs/WPF/WPF_Ribbon/CustomO2.cs
  96. +2 −21 APIs/WPF/WPF_Ribbon/WPF_Ribbon.cs
  97. +8 −19 APIs/WPF/WPF_Ribbon/WPF_Ribbon_ExtensionMethods.cs
  98. +2 −7 APIs/WPF/Wpf_TextEditor_ExtensionMethods.cs
  99. +2 −2 APIs/WPF/Xaml/XamlCode.cs
  100. +3 −3 APIs/WPF/Xaml/Xaml_ExtensionMethods.cs
  101. +2 −1  APIs/Windows/InputSimulator/API_InputSimulator.cs
  102. +1 −11 APIs/Windows/MessageHooks/GenericWindow.cs
  103. +410 −0 Languages/AspNet/ascx_WSDL_Creation_and_Execution.cs
  104. +1 −0  Languages/DotNet/Ast_Scanner/Ast_Engine/O2MappedAstData_ExtensionMethods.cs
  105. +7 −3 Languages/DotNet/Ast_Scanner/Controls/ascx_GraphAst_MethodCalls.cs
  106. +2 −6 Languages/DotNet/Ast_Scanner/Controls/ascx_View_SourceCode_AST.cs
  107. +8 −0 Languages/DotNet/Ast_Scanner/O2_DotNet_Ast_Engine.cs
  108. +1 −1  Languages/DotNet/Ast_Scanner/SecurityRules_AST_DotNet/Rule_DotNet_FindSources.cs
  109. +90 −0 Languages/DotNet/Mono_and_Reflection/ascx_AssemblyAttributes.cs
  110. +227 −0 Languages/DotNet/Mono_and_Reflection/ascx_MonoDecompiler.cs
  111. +2 −0  Languages/DotNet/SoS/SunOfStrikeApi.cs
  112. +20 −0 O2.Platform.Scritps.sln
  113. +4 −2 Utils/_O2_Development/Compile All Local O2 Scripts.h2
View
2  3rdParty/Antlr/Antlr_Installer.cs
@@ -6,7 +6,7 @@
namespace O2.XRules.Database.APIs
{
- public class Install_Test
+ public class Antlr_Installer_Test
{
public void test()
{
View
2  3rdParty/Apache/Apache_HttpServer_Installer.cs
@@ -8,7 +8,7 @@
namespace O2.XRules.Database.APIs
{
- public class Installer_Test
+ public class Apache_HttpServer_Installer_Test
{
public void test()
{
View
3  3rdParty/CheckMarx/2.6.3_WSDL_files/CxEngineWebServices.cs
@@ -20,7 +20,6 @@
// This source code was auto-generated by wsdl, Version=2.0.50727.1432.
//
-
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
@@ -4770,4 +4769,4 @@ public partial class GetPlatformCompletedEventArgs : System.ComponentModel.Async
return ((NumberMessage)(this.results[0]));
}
}
-}
+}
View
1  3rdParty/CheckMarx/2.6.3_WSDL_files/CxManagerWebServices.cs
@@ -21,7 +21,6 @@
// This source code was auto-generated by wsdl, Version=2.0.50727.1432.
//
-
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
View
1  3rdParty/CheckMarx/API_CxWebClient.cs
@@ -5,7 +5,6 @@
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
-using O2.Kernel.ExtensionMethods;
//O2File:CxPortalWebService.cs
View
16 3rdParty/CheckMarx/API_IE_CxWebClient.cs
@@ -1,12 +1,10 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Linq;
-using System.Windows.Forms;
-using System.Collections.Generic;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+
+using System.Windows.Forms;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.Utils;
+using FluentSharp.Watin;
+
//O2File:API_IE_ExecutionGUI.cs
//O2File:WatiN_IE_ExtensionMethods.cs
//O2Ref:WatiN.Core.1x.dll
@@ -74,7 +72,7 @@ public static class API_IE_CxWebClient_HelperMethods
{
public static WatiN_IE ie;
- public static API_IE_CxWebClient login(this API_IE_CxWebClient cxClient, ICredential credential)
+ public static API_IE_CxWebClient login(this API_IE_CxWebClient cxClient, Credential credential)
{
return cxClient.login(credential.UserName, credential.Password);
}
View
19 3rdParty/CheckMarx/VistaDB/API_VistaDB.cs
@@ -9,20 +9,15 @@
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.SharpDevelop.ExtensionMethods;
-using O2.Views.ASCX.ExtensionMethods;
-using O2.XRules.Database.Utils;
-
-
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL;
+using FluentSharp.WinForms;
using VistaDB.Provider;
+
//O2Ref:C:\Program Files (x86)\Checkmarx\Checkmarx Engine Server\VistaDB.NET20.dll
-namespace O2.XRules.Database.APIs
+namespace O2.XRules.Database.APIs.For_VistaDB
{
public class API_VistaDB_Test
{
@@ -616,7 +611,7 @@ public static API_VistaDB add_Viewer_TablesData<T>(this API_VistaDB vistaDB , T
rowDataField.afterSelect<DataGridViewCell>(
(cell)=>{
selectedField = rowDataField.selected().get_Text();
- var fieldContent = cell.Value.str().fixCRLF();
+ var fieldContent = cell.Value.str().fix_CRLF();
if (fieldContent.starts("<?xml"))
{
"mapping xml".info();
View
13 3rdParty/Clojure/API_Clojure.cs
@@ -1,13 +1,10 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.IO;
-using System.Collections;
+
using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Windows.Forms;
-using O2.Kernel;
-using O2.Kernel.Objects;
-using O2.DotNetWrappers.ExtensionMethods;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL;
+
//Installer:Clojure_Installer.cs!Clojure\Debug 4.0\Clojure.Main.exe
//O2Ref:Clojure\Debug 4.0\Clojure.dll
View
8 3rdParty/Clojure/Clojure_Installer.cs
@@ -1,10 +1,6 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
-using O2.XRules.Database.Utils;
namespace O2.XRules.Database.APIs
View
8 3rdParty/EasyHook/API_EasyHook.cs
@@ -1,11 +1,7 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Linq;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using O2.Kernel.ExtensionMethods;
+
using System.Runtime.InteropServices;
-using O2.DotNetWrappers.ExtensionMethods;
+
//O2Ref:EasyHook\EasyHook.dll
//Installer:EasyHook_Installer.cs!EasyHook\EasyHook32.dll
View
9 3rdParty/EasyHook/EasyHook_Installer.cs
@@ -1,12 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class testInstall
+ public class EasyHook_Installer_Test
{
public static void test()
{
View
15 3rdParty/Eclipse/API_Eclipse.cs
@@ -1,17 +1,10 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.DotNet;
-
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.GuiAutomation;
using White.Core.UIItems.WindowItems;
using White.Core.UIItems.Finders;
-using White.Core.Factory;
using White.Core.UIItems;
-using System.Windows.Automation;
-using White.Core.AutomationElementSearch;
//O2File:API_GuiAutomation.cs
//O2File:Tool_API.cs
View
15 3rdParty/Fiddler/API_Fiddler.cs
@@ -1,19 +1,10 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
using System.Diagnostics;
-using System.IO;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
using System.Windows.Forms;
-using System.Reflection;
-using System.Text;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Network;
-using O2.DotNetWrappers.Windows;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.GuiAutomation;
using White.Core.UIItems.WindowItems;
//O2File:API_GuiAutomation.cs
//O2File:Tool_API.cs
View
10 3rdParty/Fiddler/UnitTests_API_Fiddler.cs
@@ -1,12 +1,6 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Text;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+
+using FluentSharp.CoreLib;
using NUnit.Framework;
using O2.XRules.Database.APIs;
//O2Ref:nunit.framework.dll
View
10 3rdParty/Flash/SWFScan_Installer.cs
@@ -1,15 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class Installer_Test
+ public class SWFScan_Installer_Test
{
public void test()
{
View
9 3rdParty/Fortify/API_Fortify_1_6.cs
@@ -3,12 +3,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.WinForms;
using xmlns.www.fortifysoftware.com.schema.fvdl;
+using FluentSharp.For_XmlSchemaLinq;
//O2File:Fortify.fvdl.1.6.xsd.cs
namespace O2.XRules.Database.APIs
View
20 3rdParty/FuzzDB/API_FuzzDB.cs
@@ -1,18 +1,12 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
using System.Collections.Generic;
-using System.Linq;
using System.Windows.Forms;
-using System.Reflection;
-using System.Text;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Network;
-using O2.DotNetWrappers.Zip;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL.Utils;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Controls;
namespace O2.XRules.Database.APIs
{
@@ -60,7 +54,7 @@ public bool install()
//var webLocation = "{0}{1}".format(PublicDI.config.O2SVN_FilesWithNoCode, currentVersionZipFile);
var webLocation = "http://o2platform.googlecode.com/svn/trunk/O2%20-%20All%20Active%20Projects/_3rdPartyDlls/FilesWithNoCode/fuzzdb-1.08.zip";
"downloading file {0} from {1} to {2}".info(currentVersionZipFile, webLocation,localFilePath);
- if (new Web().httpFileExists(webLocation))
+ if (webLocation.httpFileExists())
{
new Web().downloadBinaryFile(webLocation, localFilePath);
if (localFilePath.fileExists())
@@ -83,7 +77,7 @@ public List<String> getPayloads(params string[] virtualFilePaths)
var targetFile = PathToFuzzDB.pathCombine(virtualFilePath);
if (targetFile.fileExists())
payloads.AddRange(targetFile.fileContents()
- .fixCRLF()
+ .fix_CRLF()
.lines()
.remove(0));
else
View
8 3rdParty/GNU/GnuWin32_Make_Installer.cs
@@ -1,10 +1,6 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
-using O2.XRules.Database.Utils;
namespace O2.XRules.Database.APIs
View
18 3rdParty/GitHub/API_GitHub.cs
@@ -1,17 +1,11 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Linq;
-using System.Collections.Generic;
+
using System.Windows.Forms;
-using System.Text;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
+using FluentSharp.GuiAutomation;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Controls;
+
//O2File:API_GuiAutomation.cs
//O2Ref:White.Core.dll
//O2Ref:UIAutomationClient.dll
View
34 3rdParty/GitHub/API_GitHub_Issues.cs
@@ -1,27 +1,17 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
-using System.Linq;
-using System.Text;
using System.Drawing;
using System.Collections.Generic;
using System.Windows.Forms;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.CoreLib.Utils;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Controls;
+using GithubSharp.Core.API;
+using GithubSharp.Core.Models;
+using GithubSharp.Plugins.LogProviders.SimpleLogProvider;
-using GithubSharp;
-using GithubSharp.Core;
-using GithubSharp.Core.Base;
-using GithubSharp.Core.Models;
-using GithubSharp.Core.Models.Internal;
-using GithubSharp.Core.API;
-using GithubSharp.Core.Services;
-using GithubSharp.Plugins.LogProviders.SimpleLogProvider;
//O2Ref:GithubSharp.Core.dll
//O2Ref:BasicCacher.dll
//O2Ref:GithubSharp.Plugins.LogProviders.SimpleLogProvider.dll
@@ -317,12 +307,12 @@ public static T showEditor<T>(this API_GitHub_Issues gitHubIssues, T control)
foreach(var label in Labels)
if (label.Value.@checked())
{
- if(CurrentIssue.Labels.Contains(label.Key).isFalse())
+ if(CurrentIssue.Labels.toList().Contains(label.Key).isFalse())
gitHubIssues.add_Label(CurrentIssue.Number, label.Key);
updatedLabels.Add(label.Key);
}
else
- if(CurrentIssue.Labels.Contains(label.Key))
+ if(CurrentIssue.Labels.toList().Contains(label.Key))
gitHubIssues.remove_Label(CurrentIssue.Number, label.Key);
CurrentIssue.Labels = updatedLabels.ToArray();
@@ -409,9 +399,9 @@ public static T showEditor<T>(this API_GitHub_Issues gitHubIssues, T control)
Id.set_Text("{0} ({1})".format(issue.Number, issue.State));
Title.set_Text(issue.Title);
User.set_Text(issue.User);
- Body.set_Text(issue.Body.fixCRLF());
+ Body.set_Text(issue.Body.fix_CRLF());
foreach(var label in Labels)
- label.Value.@checked(issue.Labels.Contains(label.Key));
+ label.Value.@checked(issue.Labels.toList().Contains(label.Key));
Comments.clear();
Comments.enabled(false);
if (issue.Comments > 0)
View
26 3rdParty/GitHub/API_GitHub_Objects.cs
@@ -1,27 +1,17 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
using System.Linq;
-using System.Text;
using System.Drawing;
using System.Collections.Generic;
using System.Windows.Forms;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.SharpDevelop.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
-using O2.XRules.Database.Utils;
-
-using GithubSharp;
-using GithubSharp.Core;
-using GithubSharp.Core.Base;
-using GitModel = GithubSharp.Core.Models;
-using GithubSharp.Core.Models.Internal;
-using GitAPI = GithubSharp.Core.API;
-using GithubSharp.Core.Services;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.CoreLib.Utils;
+using FluentSharp.REPL;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Controls;
+using GitModel = GithubSharp.Core.Models;
+using GitAPI = GithubSharp.Core.API;
using GithubSharp.Plugins.LogProviders.SimpleLogProvider;
//O2Ref:GithubSharp.Core.dll
//O2Ref:BasicCacher.dll
View
17 3rdParty/GitHub/GitHub - CustomO2.cs
@@ -1,16 +1,11 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Linq;
-using System.Collections.Generic;
+
using System.Windows.Forms;
-using System.Text;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.Utils;
+using FluentSharp.Watin;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Controls;
using O2.XRules.Database.Utils;
//O2File:Watin_IE_ExtensionMethods.cs
//O2File:CustomO2.cs
View
10 3rdParty/GnuCitizen/BadAssProxy_Installer.cs
@@ -1,15 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class Install_Test
+ public class BadAssProxy_Installer_Test
{
public void test()
{
View
10 3rdParty/GnuCitizen/Proxify_Installer.cs
@@ -1,15 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class Install_Test
+ public class Proxify_Installer_Test
{
public void test()
{
View
7 3rdParty/GoogleDataAPI/API_GoogleDataAPI.cs
@@ -1,10 +1,3 @@
-using System;
-using System.Threading;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
//Installer:GoogleDataAPI_Installer.cs!GoogleDataAPI\SourceDir\Redist\Google.GData.Apps.dll
//O2Ref:GoogleDataAPI\SourceDir\Redist\Google.GData.Apps.dll
View
11 3rdParty/GoogleDataAPI/GoogleDataAPI_Installer.cs
@@ -1,12 +1,9 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
-public class DynamicType
+public class GoogleDataAPI_Installer_Test
{
public void dynamicMethod()
{
View
9 3rdParty/ILSpy/API_ILSpy.cs
@@ -1,12 +1,5 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.IO;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Windows.Forms;
-using O2.Kernel;
-using O2.DotNetWrappers.ExtensionMethods;
+
//Installer:ILSpy_Installer.cs!ILSpy\ILSpy.exe
//O2Ref:ILSpy\ILSpy.exe
View
8 3rdParty/ILSpy/ILSpy_Installer.cs
@@ -1,10 +1,6 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
-using O2.XRules.Database.Utils;
namespace O2.XRules.Database.APIs
View
12 3rdParty/ITextSharp/ITextSharp_Installer.cs
@@ -1,14 +1,14 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+using FluentSharp.REPL;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class testInstall
+ public class ITextSharp_Installer_Test
{
- public static void ITextSharp_Installer_Test()
+ public static void Test()
{
new ITextSharp_Installer().start();
}
View
13 3rdParty/ITextSharp/ascx_Create_Links_From_Clipboard.cs
@@ -2,16 +2,13 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
-using iTextSharp;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.CoreLib.Interfaces;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Controls;
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.DotNetWrappers.Windows;
//O2Ref:ITextSharp/itextsharp.dll
//Installer:ITextSharp_Installer.cs!ITextSharp/itextsharp.dll
View
8 3rdParty/JAD/API_Jad.cs
@@ -1,7 +1,9 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using O2.Kernel;
-using O2.DotNetWrappers.ExtensionMethods;
+
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL;
+
//Installer:Jad_Installer.cs!jad/jad.exe
View
8 3rdParty/JAD/Jad_Installer.cs
@@ -1,11 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class testInstall
+ public class Jad_Installer_Test
{
public static void test()
{
View
9 3rdParty/JabberNet/JabberNet_Installer.cs
@@ -1,10 +1,5 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
-using O2.XRules.Database.APIs;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
View
5 3rdParty/Jni4Net/API_Jni4Net.cs
@@ -2,10 +2,9 @@
using System.Linq;
using System.Drawing;
using System.Windows.Forms;
-using System.Collections;
using System.Collections.Generic;
-using O2.Kernel;
-using O2.DotNetWrappers.ExtensionMethods;
+using FluentSharp.CoreLib;
+using FluentSharp.WinForms;
using java.lang;
using java.io;
using java.net;
View
8 3rdParty/Jni4Net/Jni4Net_Installer.cs
@@ -1,11 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class testInstall
+ public class Jni4Net_Installer_Test
{
public static void test()
{
View
9 3rdParty/LinqPad/LinqPad_Installer.cs
@@ -1,9 +1,6 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
View
11 3rdParty/MarkdownSharp/API_MarkdownSharp.cs
@@ -1,13 +1,12 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
-using System.Linq;
using System.Windows.Forms;
-using System.Collections.Generic;
-using O2.Kernel;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Collections.Generic;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.WinForms;
using MarkdownSharp;
+
//O2Ref:MarkdownSharp.dll
namespace O2.XRules.Database.APIs
View
10 3rdParty/MarkdownSharp/MarkdownSharp_Installer.cs
@@ -1,14 +1,10 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
//O2File:API_NuGet.cs
namespace O2.XRules.Database.APIs
{
+ //NOT FULLLY IMPLEMENTED
public class MarkdownSharp_Installer
{
public MarkdownSharp_Installer()
@@ -18,7 +14,7 @@ public MarkdownSharp_Installer()
if (expectedDll.assembly().isNull())
{
var nuGet = new API_NuGet();
- nuGet.install(nugetPackage);
+ //nuGet.install(nugetPackage);
}
}
View
16 3rdParty/Microsoft/IIS/API_IIS7.cs
@@ -4,22 +4,16 @@
//O2Tag:SkipGlobalCompilation
using System;
-using System.Xml.Serialization;
using System.Linq;
-using System.Data;
using System.Drawing;
-using System.Data.SqlClient;
using System.Windows.Forms;
using System.Collections.Generic;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.SharpDevelop.ExtensionMethods;
-using O2.Views.ASCX.ExtensionMethods;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL;
+using FluentSharp.WinForms;
using Microsoft.Web.Administration;
-using O2.XRules.Database.Utils;
+
//O2Ref:C:\Windows\System32\InetSrv\Microsoft.Web.Administration.dll
//O2File:ascx_FolderViewer.cs
View
11 3rdParty/Microsoft/IIS/API_IIS_Logs.cs
@@ -1,14 +1,9 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
+
using System.Xml.Serialization;
-using System.Linq;
using System.Collections.Generic;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
namespace O2.XRules.Database.APIs
View
9 3rdParty/Microsoft/IIS/API_IIS_Request.cs
@@ -1,14 +1,9 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
+
using System.Linq;
using System.Xml.Serialization;
using System.Collections.Generic;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
//O2File:API_IIS_Logs
View
14 3rdParty/Microsoft/SqlServer/API_SqlServer.cs
@@ -7,15 +7,11 @@
using System.Data.SqlClient;
using System.Windows.Forms;
using System.Collections.Generic;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.SharpDevelop.ExtensionMethods;
-using O2.Views.ASCX.ExtensionMethods;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL;
+using FluentSharp.WinForms;
//O2Ref:System.Data.dll
-using O2.XRules.Database.Utils;
namespace O2.XRules.Database.APIs
{
@@ -539,7 +535,7 @@ public static API_SqlServer add_Viewer_TablesData<T>(this API_SqlServer sqlServe
rowDataField.afterSelect<DataGridViewCell>(
(cell)=>{
selectedField = rowDataField.selected().get_Text();
- var fieldContent = cell.Value.str().fixCRLF();
+ var fieldContent = cell.Value.str().fix_CRLF();
if (fieldContent.starts("<?xml"))
{
"mapping xml".info();
View
9 3rdParty/MonoCecil/Ascx/ascx_O2Reflector.cs
@@ -3,12 +3,9 @@
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.Kernel.CodeUtils;
-using O2.Kernel.InterfacesBaseImpl;
-using O2.Kernel;
-using O2.DotNetWrappers.ExtensionMethods;
+using FluentSharp.CoreLib.API;
+using FluentSharp.WinForms;
+using FluentSharp.WinForms.Utils;
//O2File:Ascx_O2Reflector.Designer.cs
//O2File:../AssemblyAnalysisImpl.cs
View
8 3rdParty/MonoCecil/AssemblyAnalysisImpl.cs
@@ -2,11 +2,11 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
-using O2.Interfaces.Controllers;
-using O2.Kernel.CodeUtils;
-using O2.DotNetWrappers.Windows;
-using O2.Kernel;
+using FluentSharp.CoreLib.API;
+using FluentSharp.WinForms.Interfaces;
+using FluentSharp.WinForms.Utils;
using Mono.Cecil;
+
//O2File:MonoCecil/CecilUtils.cs
//O2File:O2MonoCecil.cs
namespace O2.External.O2Mono
View
7 3rdParty/MonoCecil/CecilDecompiler/CecilDecompiler.cs
@@ -2,14 +2,13 @@
using System;
using System.IO;
using System.Text;
-using ICSharpCode.Decompiler.FlowAnalysis;
+using FluentSharp.CoreLib.API;
using ICSharpCode.Decompiler;
+using ICSharpCode.Decompiler.FlowAnalysis;
+using ICSharpCode.ILSpy;
using Mono.Cecil;
using Mono.Cecil.Cil;
-using O2.DotNetWrappers.Windows;
-using O2.Kernel;
using O2.External.O2Mono.MonoCecil;
-using ICSharpCode.ILSpy;
//O2File:API_ILSpy.cs
//O2File:..\MonoCecil\CecilUtils.cs
View
3  3rdParty/MonoCecil/CecilFilteredSignature.cs
@@ -1,6 +1,7 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
+
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
-using O2.DotNetWrappers.Filters;
//O2File:MonoCecil/CecilUtils.cs
View
4 3rdParty/MonoCecil/MonoCecil/CecilAssemblyBuilder.cs
@@ -3,10 +3,10 @@
using System.Collections.Generic;
using System.IO;
using System.Reflection;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
using Mono.Cecil.Cil;
-using O2.External.O2Mono;
-using O2.Kernel;
+
using MethodAttributes=Mono.Cecil.MethodAttributes;
using TypeAttributes=Mono.Cecil.TypeAttributes;
View
6 3rdParty/MonoCecil/MonoCecil/CecilAssemblyDependencies.cs
@@ -2,11 +2,9 @@
using System;
using System.Collections.Generic;
using System.IO;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Windows;
-using O2.Kernel.Objects;
-using O2.Kernel;
//O2File:CecilUtils.cs
View
4 3rdParty/MonoCecil/MonoCecil/CecilCodeSearch.cs
@@ -2,10 +2,10 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
using Mono.Cecil.Cil;
-using O2.External.O2Mono.MonoCecil;
-using O2.Kernel;
+
//O2File:CecilUtils.cs
//O2File:CecilAssemblyDependencies.cs
namespace O2.External.O2Mono.MonoCecil
View
6 3rdParty/MonoCecil/MonoCecil/CecilConvert.cs
@@ -4,8 +4,8 @@
using System.Linq;
using System.Reflection;
using System.Text;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
-using O2.Kernel;
//O2File:O2MonoCecil.cs
@@ -22,8 +22,8 @@ public static MethodDefinition getMethodDefinitionFromMethodInfo(MethodInfo meth
{
foreach (var methodDefinition in CecilUtils.getMethods(assemblyDefinition))
{
- var functionSignature1 = new O2.DotNetWrappers.Filters.FilteredSignature(methodInfo);
- var functionSignature2 = new O2.DotNetWrappers.Filters.FilteredSignature(methodDefinition.ToString());
+ var functionSignature1 = new FilteredSignature(methodInfo);
+ var functionSignature2 = new FilteredSignature(methodDefinition.ToString());
if (functionSignature1.sSignature == functionSignature2.sSignature)
return methodDefinition;
if (functionSignature1.sFunctionName == functionSignature2.sFunctionName)
View
3  3rdParty/MonoCecil/MonoCecil/CecilUtils.cs
@@ -4,11 +4,10 @@
using System.Diagnostics;
using System.IO;
using System.Text;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
using Mono.Cecil.Cil;
using ICSharpCode.NRefactory.TypeSystem;
-using O2.DotNetWrappers.Windows;
-using O2.Kernel;
//O2File:API_ILSpy.cs
//O2Ref:ILSpy\Mono.Cecil.dll
View
4 3rdParty/MonoCecil/MonoCecil/CreateTestExe.cs
@@ -1,8 +1,8 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
-using O2.External.O2Mono;
-using O2.Kernel;
+
//O2File:CecilUtils.cs
namespace O2.External.O2Mono.MonoCecil
View
9 3rdParty/MonoCecil/MonoCecil/StandAloneExe.cs
@@ -1,14 +1,9 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Collections.Generic;
+
using System.IO;
-using System.Linq;
using System.Reflection;
-using System.Text;
+using FluentSharp.CoreLib.API;
using Mono.Cecil;
-using O2.DotNetWrappers.NetSDK;
-using O2.DotNetWrappers.Windows;
-using O2.Kernel;
//O2File:CecilUtils.cs
//O2File:CecilAssemblyDependencies.cs
View
4 3rdParty/MonoCecil/O2MonoCecil.cs
@@ -7,12 +7,12 @@
using System.Collections;
using System.Collections.Generic;
using System.Windows.Forms;
+using FluentSharp.CoreLib.API;
+using FluentSharp.WinForms.Utils;
using Mono.Cecil;
-using O2.DotNetWrappers.Windows;
using O2.External.O2Mono;
using O2.External.O2Mono.MonoCecil;
using O2.Interfaces.ExternalDlls;
-using O2.Kernel;
//Installer:ILSpy_Installer.cs!ILSpy/ILSpy.exe
//O2File:CecilFilteredSignature.cs
//O2File:MonoCecil/CecilUtils.cs
View
12 3rdParty/NMap/NMap_CmdLine_Installer.cs
@@ -1,14 +1,10 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
-using O2.XRules.Database.Utils;
-
+
namespace O2.XRules.Database.APIs
{
- public class Install_Test
+ public class NMap_CmdLine_Test
{
public void test()
{
View
10 3rdParty/NMap/NMap_Installer.cs
@@ -1,11 +1,7 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
-using O2.XRules.Database.Utils;
-
+
namespace O2.XRules.Database.APIs
{
public class Install_NMap_Test
View
6 3rdParty/Nikto/API_Nikto.cs
@@ -1,9 +1,7 @@
using System;
using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Windows;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
//O2File:Tool_API.cs
View
6 3rdParty/NodeJS/API_NodeJS.cs
@@ -1,9 +1,7 @@
using System;
using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
//Installer:NodeJS_Exe_Installer.cs!NodeJS\node.exe
View
8 3rdParty/NodeJS/NodeJS_Exe_Installer.cs
@@ -1,9 +1,5 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
View
10 3rdParty/NodeJS/NodeJS_Installer.cs
@@ -1,15 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class Install_NodeJS_Test
+ public class NodeJS_Installer_Test
{
public void test()
{
View
8 3rdParty/NodeJS/NodeJS_MSI_Installer.cs
@@ -1,9 +1,5 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
View
13 3rdParty/NuGet/API_NuGet.cs
@@ -1,16 +1,8 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Linq;
-using System.Threading;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using System.Text;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.ExtensionMethods;
+
using NuGet;
using NuGet.Common;
+
//O2Ref:NuGet\NutGet.exe
//Installer:NuGet_Installer.cs!NuGet\NutGet.exe
@@ -35,6 +27,7 @@ public API_NuGet SetUp()
{
NuGet_Program = new Program();
NuGet_Console = new Console();
+ return this;
}
/*public string execute(string command)
{
View
8 3rdParty/NuGet/NuGet_Installer.cs
@@ -1,10 +1,6 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
//O2File:Tool_API.cs
-using O2.XRules.Database.Utils;
namespace O2.XRules.Database.APIs
View
12 3rdParty/OWASP/OWASP_Summit_2011/API_OWASP_Summit_2011.cs
@@ -1,16 +1,8 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
-using System.Linq;
using System.Collections.Generic;
-using System.Windows.Forms;
-using System.Text;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
+using FluentSharp.CoreLib;
+
//O2File:OwaspWikiAPI.cs
//O2Ref:O2_Misc_Microsoft_MPL_Libs.dll
//O2File:WikiText.cs
View
14 3rdParty/OWASP/WebScarab/API_WebScarab.cs
@@ -4,16 +4,10 @@
using System.IO;
using System.Collections;
using System.Collections.Generic;
-using System.Linq;
using System.Windows.Forms;
-using System.Reflection;
-using System.Text;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Network;
-using O2.DotNetWrappers.Windows;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.WinForms;
//using O2.Views.ASCX.classes.MainGUI;
//using O2.Views.ASCX.ExtensionMethods;
//O2File:WebscarabConversation.cs
@@ -27,8 +21,6 @@
//O2Ref:WindowsBase.dll
//O2Ref:System.Xaml.dll
-using O2.XRules.Database.Utils;
-
namespace O2.XRules.Database.APIs
{
View
11 3rdParty/OWASP/WebScarab/O2AssesmentLoad_WebScarab.cs
@@ -1,14 +1,9 @@
using System;
-using System.Linq;
-using System.Collections;
using System.Collections.Generic;
using System.IO;
-using System.Runtime.CompilerServices;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.O2Findings;
-using O2.DotNetWrappers.Windows;
-using O2.ImportExport.Misc;
-using O2.Interfaces.O2Findings;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.Interfaces;
+using FluentSharp.WinForms.O2Findings;
using O2.XRules.Database.APIs;
//O2File:API_WebScarab.cs
View
15 3rdParty/OWASP/WebScarab/UnitTests_GUI_API_WebScarab.cs
@@ -1,19 +1,6 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
-using System.Diagnostics;
-using System.IO;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Windows.Forms;
-using System.Reflection;
-using System.Text;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Network;
-using O2.DotNetWrappers.Windows;
+using FluentSharp.CoreLib;
using NUnit.Framework;
//O2File:API_WebScarab.cs
//O2Ref:NUnit.Framework.dll
View
17 3rdParty/OWASP/ZAProxy/ZAProxy_Installer.cs
@@ -1,24 +1,21 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class testInstall
+ public class ZAProxy_Install_Test
{
public static void test()
{
- new MySql_Install().start();
+ new ZAProxy_Install().start();
}
}
- public class MySql_Install : Tool_API
+ public class ZAProxy_Install : Tool_API
{
- public MySql_Install()
+ public ZAProxy_Install()
{
config("ZAProxy",
"https://zaproxy.googlecode.com/files/ZAP_WEEKLY_D-2013-05-20.zip".uri(),
View
6 3rdParty/cURL/API_cURL.cs
@@ -1,9 +1,7 @@
using System;
using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Windows;
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
//O2File:cURL_Installer.cs
View
11 3rdParty/cURL/cUrl_Installer.cs
@@ -1,14 +1,11 @@
-using System;
-using System.Diagnostics;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using System.Diagnostics;
+using FluentSharp.CoreLib;
+
//O2File:Tool_API.cs
namespace O2.XRules.Database.APIs
{
- public class testInstall
+ public class cURL_Install_Test
{
public static void test()
{
View
19 APIs/IE/IE_ExecutionGui/API_IE_ExecutionGUI.cs
@@ -1,22 +1,13 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
using System;
-using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.Windows.Forms;
-using System.Text;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.Network;
-using O2.DotNetWrappers.DotNet;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.External.SharpDevelop.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.ExtensionMethods;
-using O2.XRules.Database.Utils;
-//O2File:WatiN_IE_ExtensionMethods.cs
-//O2Ref:WatiN.Core.1x.dll
+using FluentSharp.CoreLib;
+using FluentSharp.CoreLib.API;
+using FluentSharp.REPL;
+using FluentSharp.Watin;
+using FluentSharp.WinForms;
namespace O2.XRules.Database.APIs
View
10 APIs/IE/IE_ExecutionGui/IE_Google.cs
@@ -1,12 +1,8 @@
// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Linq;
+
using System.Windows.Forms;
-using System.Collections.Generic;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.XRules.Database.Utils;
+using FluentSharp.Watin;
+
//O2File:API_IE_ExecutionGUI.cs
//O2File:WatiN_IE_ExtensionMethods.cs
//O2Ref:WatiN.Core.1x.dll
View
1,114 APIs/MediaWiki/MediaWikiEditor.cs.o2 → APIs/MediaWiki/MediaWikiEditor.cs
@@ -1,557 +1,557 @@
-// This file is part of the OWASP O2 Platform (http://www.owasp.org/index.php/OWASP_O2_Platform) and is released under the Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
-using System;
-using System.Drawing;
-using System.Windows.Forms;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using O2.Interfaces.O2Core;
-using O2.Kernel;
-using O2.Kernel.ExtensionMethods;
-using O2.DotNetWrappers.ExtensionMethods;
-using O2.DotNetWrappers.Windows;
-using O2.DotNetWrappers.DotNet;
-using O2.Views.ASCX;
-using O2.Views.ASCX.ExtensionMethods;
-using O2.Views.ASCX.classes.MainGUI;
-using O2.Views.ASCX.Ascx.MainGUI;
-using O2.External.IE.ExtensionMethods;
-
-using O2.XRules.Database.APIs;
-using O2.XRules.Database.Utils;
-using AvalonDock;
-
-//O2File:OwaspWikiAPI.cs
-//O2File:O2PlatformWikiAPI.cs
-//O2File:ISecretData.cs
-//O2File:WPF_Gui.cs
-//O2File:API_AvalonDock.cs
-
-//O2File:ascx_MediaWiki_ConfigAndLogin.cs
-//O2File:ascx_MediaWiki_Backup.cs
-//O2File:ascx_MediaWiki_PageEditor_Simple.cs
-
-//O2Ref:FluentSharp.WPF.dll
-//O2Ref:AvalonDock.dll
-//O2Ref:PresentationCore.dll
-//O2Ref:WindowsBase.dll
-//O2Ref:PresentationFramework.dll
-//O2Ref:WindowsFormsIntegration.dll
-//O2Ref:System.Xaml.dll
-//O2Ref:ICSharpCode.AvalonEdit.dll
-//O2Ref:O2_External_IE.dll
-//O2Ref:QuickGraph.dll
-//O2Ref:GraphSharp.dll
-//O2Ref:GraphSharp.Controls.dll
-//O2Ref:WatiN.Core.1x.dll
-//O2Ref:O2_Misc_Microsoft_MPL_Libs.dll
-
-namespace O2.XRules.Database.APIs
-{
- public class MediaWikiEditor : Panel
- {
- public String FileWithSecretData {get; set;}
-
- public O2MediaWikiAPI WikiApi {get ; set;}
-
- public ascx_MediaWiki_ConfigAndLogin ConfigAndLogin { get; set;}
- public ascx_MediaWiki_Backup Backup { get; set;}
- public ascx_MediaWiki_PageEditor_Simple EditPage { get; set;}
-
- /*public Panel EditUncategorizedPages { get; set;}
- public Panel EditUsers { get; set;}
- public Panel EditAllPages { get; set;}
- public Panel EditCategoriesPages { get; set;}
- public Panel EditTemplatePages { get; set;}
- public Panel EditUsingCategories { get; set;}*/
-
-
- //public SplitContainer TopSplitContainer { get; set; }
- //public Panel RightPanel { get; set; }
-
- public DockingManager MainDockingManager { get; set; }
- public ResizingPanel MainResizingPanel { get; set; }
- public DockableContent LeftMenuDockableContent { get; set; }
- public DocumentPane MainDocumentPane { get; set; }
- public WPF_GUI WpfGui { get; set; }
-
- public string helpPageInO2PlatformWiki = "O2 Script/Tool - MediaWiki Editor";
-
- public static MediaWikiEditor launch()
- {
- var wikiEditor = O2Gui.open<MediaWikiEditor>("O2 MediaWiki Editor",750,600)
- .buildGui();
- //wikiEditor.setMediaWikiTo_OWASP();
- //wikiEditor.setMediaWikiTo_O2Platform();
- //wikiEditor.showLoginPanel();
- //wikiEditor.showEditPage();
-
- //wikiEditor.showEditUsers();
- return wikiEditor;
- }
-
- public MediaWikiEditor()
- {
- FileWithSecretData = @"C:\O2\_USERDATA\O2TestUsers.xml";
- WikiApi = new O2MediaWikiAPI();
- //buildGui_Internal();
- //setMediaWikiTo_O2Platform();
- //setMediaWikiTo_OWASP();
- }
-
- public void setMediaWikiTo_O2Platform()
- {
- //WikiApi = new O2PlatformWikiAPI();
- //this.buildGui();
- }
-
- public void setMediaWikiTo_OWASP()
- {
- WikiApi = new OwaspWikiAPI(false);
- this.buildGui();
- }
-
- private void buildGui_Internal(Control topPanel)
- {
- //buildGui(this);
- //var topPanel = this;//this.add_Panel();
- //topPanel.insert_Below<Panel>(100).add_LogViewer();
-
- MainDockingManager = topPanel.add_DockingManager();
- MainResizingPanel = MainDockingManager.add_ResizingPanel();
-
- MainResizingPanel.add_DockablePane(); // don't understand why I need to add this so that the SetResizeWidth works
-
- //var dockablePane = MainResizingPanel.add_DockablePane();
- //dockablePane.resizeWidth(200);
-
- //LeftMenuDockableContent = dockablePane.add_DockableContent("Commands","Commands");
-
- MainDocumentPane = MainResizingPanel.add_DocumentPane();
- }
-
-
- public MediaWikiEditor buildGui()
- {
- WpfGui = this.add_Control<WPF_GUI>();
- WpfGui.buildGui();
- buildGui_Internal(WpfGui.WinFormPanel);
-
- showLogViewer();
-
- WpfGui.add_Section("Media Wiki Editor", "Welcome to the O2 MediaWiki Editor")
- //.add_Link("Help",showHelp)
- .add_Link("Login",showLoginPanel)
- .add_Link("Edit Page", showEditPage)
- .add_Link("Edit using Categories", showEditUsingCategories)
- .add_Link("Edit Uncategorized Pages", showEditUncategorizedPages)
- .add_Link("Edit Category Pages", showEditCategoryPages)
- .add_Link("Edit Template Pages", showEditTemplatePages)
- .add_Link("Edit ALL Pages", showEditAllPages)
- .add_Link("Edit Users", showEditUsers)
- .add_Link("Util: Raw WikiText", showRawWikiText)
- .add_Link("Util: Backup",showBackup)
- .add_Link("Util: Show O2 Log Viewer",showLogViewer);
-
-/* if(WikiApi.loggedIn())
- WpfGui.GuiSections[0].links().name("Edit Page").click();
- else
- WpfGui.GuiSections[0].links().name("Login").click();
-*/
- //showLoginPanel(); // default page
- //WpfGui.show_O2Browser();
- //WpfGui.show_O2Wiki(helpPageInO2PlatformWiki);
- return this;
- }
-
- /*public MediaWikiEditor buildGui_Old()
- {
- return (MediaWikiEditor)this.invokeOnThread(
- ()=>{
-
- var sp = LeftMenuDockableContent.add_StackPanel();
-
- sp.add_Xaml_Button("Login", showLoginPanel);
- sp.add_Xaml_Button("Edit Page", showEditPage);
- sp.add_Xaml_Button("Edit using Categories", showEditUsingCategories);
- sp.add_Xaml_Button("Edit Uncategorized Pages", showEditUncategorizedPages);
- sp.add_Xaml_Button("Edit Category Pages", showEditCategoryPages);
- sp.add_Xaml_Button("Edit Template Pages", showEditTemplatePages);
- sp.add_Xaml_Button("Edit ALL Pages", showEditAllPages);
- sp.add_Xaml_Button("Edit Users", showEditUsers);
- sp.add_Xaml_Button("Util: Raw WikiText", showRawWikiText);
- sp.add_Xaml_Button("Util: Backup",showBackup);
- sp.add_Xaml_Button("Util: Show O2 Log Viewer",showLogViewer);
-
- showLoginPanel(); // default page
- return this;
- });
- }
- */
- /*public void buildCommandsPanel(Control panel)
- {
- panel.add_Button("Login",0,0,80, 60,showLoginPanel).align_Right(panel);
- panel.add_Button("Edit Pages",100,0,80, 60, showEditPage).align_Right(panel);
- panel.add_Button("Backup",200,0,80, 60, showBackup).align_Right(panel);
- }*/
-
- public void hackToFixNewPanelWindowSizeBug()
- {
- WpfGui.WinFormPanel.fill(false)
- .height(WpfGui.WinFormPanel.height() + 1)
- .fill(true);
- }
-
- public void showLogViewer()
- {
- this.insert_Below<Panel>(100).add_LogViewer();
- }
-
- public void showHelp()
- {
- var webBrowser = MainDocumentPane.add_DocumentContent("Help")
- .setAsActive()
- .add_WinForms_Control<Panel>()
- .add_WebBrowser_Control();
- //webBrowser.parent().parent().backColor(Color.White); // because of a current bug prevents the webbrowser control from resizing to fill (on first view)
- webBrowser.open(WpfGui.Wiki_O2.html(helpPageInO2PlatformWiki).saveWithExtension(".html"));
- //WpfGui.show_O2Browser();
- //WpfGui.show_O2Wiki(helpPageInO2PlatformWiki);
- //WpfGui.show_O2Wiki(helpPageInO2PlatformWiki);
-
- }
-
- public void showLoginPanel()
- {
- var newControl = MainDocumentPane.add_DocumentContent("Login Panel")
- .setAsActive()
- .add_WinForms_Control<ascx_MediaWiki_ConfigAndLogin>();
- hackToFixNewPanelWindowSizeBug();
- if (newControl.notNull())
- newControl.buildGui(WikiApi, setWikiApi);
- else
- "in showLoginPanel, could not create ascx_MediaWiki_ConfigAndLogin control".error();
-
- //RightPanel.clear();
- /*if (ConfigAndLogin == null)
- ConfigAndLogin = RightPanel.add_Control<ascx_MediaWiki_ConfigAndLogin>().buildGui(WikiApi, setWikiApi);
- else
- RightPanel.add_Control(ConfigAndLogin); */
- }
-
- public void showEditPage()
- {
- MainDocumentPane.add_DocumentContent("Edit_Page", "Edit Page")
- .setAsActive()
- .add_WinForms_Control<ascx_MediaWiki_PageEditor_Simple>()
- .buildGui(WikiApi);
-
-
- //MainDocumentPane.SelectedPane = documentContent;
-
- /*RightPanel.clear();
- if (EditPage == null)
- EditPage = RightPanel.add_Control<ascx_MediaWiki_PageEditor_Simple>().buildGui(WikiApi);
- else
- RightPanel.add_Control(EditPage); */
- }
-
- public void showEditUsingCategories()
- {
- var panel = MainDocumentPane.add_DocumentContent("Edit_Using_Categories", "Edit Using Categories")
- .setAsActive()
- .add_WinForms_Panel();
- createGui_EditUsingCategories(panel,"Categories", "Wiki Text");
-
- /*RightPanel.clear();
- if (EditUsingCategories == null)
- {
- EditUsingCategories = RightPanel.add_Panel();
- createGui_EditUsingCategories(EditUsingCategories,"Categories", "Wiki Text");
- }
- else
- RightPanel.add_Control(EditUsingCategories);*/
- }
-
- public void showEditUncategorizedPages()
- {
- var panel = MainDocumentPane.add_DocumentContent("Edit Uncategorized Pages")
- .setAsActive()
- .add_WinForms_Panel();
- showEditGui(panel,"All Content Pages", "Page's Wiki Text",WikiApi.uncategorizedPages);
-
- /*RightPanel.clear();
- if (EditUncategorizedPages == null)
- {
- EditUncategorizedPages = RightPanel.add_Panel();
- showEditGui(EditUncategorizedPages,"All Content Pages", "Page's Wiki Text",WikiApi.uncategorizedPages);
- }
- else
- RightPanel.add_Control(EditUncategorizedPages); */
- }
-
- public void showEditAllPages()
- {
- var panel = MainDocumentPane.add_DocumentContent("Edit All Pages")
- .setAsActive()
- .add_WinForms_Panel();
- showEditGui(panel,"All Content Pages", "Page's Wiki Text",WikiApi.pages);
- /*RightPanel.clear();
- if (EditAllPages == null)
- {
- EditAllPages = RightPanel.add_Panel();
- showEditGui(EditAllPages,"All Content Pages", "Page's Wiki Text",WikiApi.pages);
- }
- else
- RightPanel.add_Control(EditAllPages); */
- }
-
- public void showEditUsers()
- {
- var panel = MainDocumentPane.add_DocumentContent("Edit User Pages")
- .setAsActive()
- .add_WinForms_Panel();
- showEditGui(panel,"User list", "User's Wiki Text",WikiApi.users);
- /*
- RightPanel.clear();
- if (EditAllPages == null)
- {
- EditUsers = RightPanel.add_Panel();
- showEditGui(EditUsers,"User list", "User's Wiki Text",WikiApi.users);
- }
- else
- RightPanel.add_Control(EditUsers); */
- }
-
- public void showEditCategoryPages()
- {
- var panel = MainDocumentPane.add_DocumentContent("Edit Category Pages")
- .setAsActive()
- .add_WinForms_Panel();
- showEditGui(panel,"Categories list", "Category's Wiki Text",WikiApi.categories);
-
- /*RightPanel.clear();
- if (EditCategoriesPages == null)
- {
- EditCategoriesPages = RightPanel.add_Panel();
- showEditGui(EditCategoriesPages,"Categories list", "Category's Wiki Text",WikiApi.categoryPages);
- }
- else
- RightPanel.add_Control(EditCategoriesPages); */
- }
-
- public void showEditTemplatePages()
- {
- var panel = MainDocumentPane.add_DocumentContent("Edit Template Pages")
- .setAsActive()
- .add_WinForms_Panel();
- showEditGui(panel,"Templates list", "Template's Wiki Text",WikiApi.templatePages);
-
- /*RightPanel.clear();
- if (EditTemplatePages == null)
- {
- EditTemplatePages = RightPanel.add_Panel();
- showEditGui(EditTemplatePages,"Templates list", "Template's Wiki Text",WikiApi.templatePages);
- }
- else
- RightPanel.add_Control(EditTemplatePages); */
- }
-
- public Control showEditGui(Control hostControl, string title1, string title2, Func<List<string>> getContent)
- {
- hostControl.clear();
- var usersGui = hostControl.add_1x1(title1,title2,true, hostControl.width()/3);
-
- var pageEditor = usersGui[1].add_Control<ascx_MediaWiki_PageEditor_Simple>().buildGui(WikiApi);
-
- Action<Control> loadData =
- (control)=>{
- control.clear();
- control.enabled(false);
- O2Thread.mtaThread(
- ()=>{
- var content = getContent();
- var treeView = control.add_TreeViewWithFilter(content)
- .afterSelect<string>((userPage)=> pageEditor.openPage(userPage));
- addEditMenuItemsToTreeView(treeView);
- control.enabled(true);
- });
- };
-
-
-
- usersGui[0].insert_Below<Panel>(20)
- .add_Link("Reload data",0,0,
- ()=> loadData(usersGui[0]))
- .click();
- return hostControl;
- }
-
- public void createGui_EditUsingCategories(Control hostControl, string title1, string title2)
- {
- hostControl.clear();
- var usersGui = hostControl.add_1x1(title1,title2,true,hostControl.width()/3);
-
- var pageEditor = usersGui[1].Parent.clear().add_Control<ascx_MediaWiki_PageEditor_Simple>().buildGui(WikiApi);
-
- var controls = usersGui[0].Parent.clear().add_1x1("Category Names","Pages in Selected Category",false);
- var Categories_TreeView = controls[0].add_TreeView();
- var PagesInCategories_TreeView = controls[1].add_TreeView();
-
- MethodInvoker loadData =
- ()=>{
- //Categories_TreeView.clear();
- Categories_TreeView = controls[0].add_TreeViewWithFilter(WikiApi.categoryPages())
- .afterSelect<string>(
- (value)=>{
- PagesInCategories_TreeView = controls[1].add_TreeViewWithFilter(WikiApi.pagesInCategory(value))
- .afterSelect<string>((page)=>pageEditor.openPage(page));
-
-
- pageEditor.openPage(value);
- addEditMenuItemsToTreeView(PagesInCategories_TreeView);
- });
-
- addEditMenuItemsToTreeView(Categories_TreeView);
-
- };
- //PagesInCategories_TreeView.clear();
- //Categories_TreeView.add_Nodes(WikiApi.categoryPages());
-
- controls[1].insert_Below<Panel>(20)
- .add_Link("Reload data",0,0,()=> loadData())
- .click();
- }
-
- //always recreate this gui to make sure we are on the correct WikiApi
- public void showBackup()
- {
- var panel = MainDocumentPane.add_DocumentContent("Backup")
- .setAsActive()
- .add_WinForms_Panel();
-
- panel.add_Control<ascx_MediaWiki_Backup>().buildGui(WikiApi);
- }
-
- public void showRawWikiText()
- {
- var defaultTopPanelText = "You can refresh the Html view using F5 or Ctrl+R (or via the context menu (right-click on WikiText))";
- var panel = MainDocumentPane.add_DocumentContent("Raw Wiki Text")
- .setAsActive()
- .add_WinForms_Panel();
- //panel.clear();
- //var wikiApi = new O2PlatformWikiAPI();
-
- var topPanel = panel.add_1x1(false);
- var rawWiki = topPanel[0].add_TextArea();
- var bottomPanel = topPanel[1].add_1x1x1("Pure Html", "Browser (pure html View)", "Browser (view using site's Styles)");
- var htmlViewer = bottomPanel[0].add_RichTextBox();
- var browserSimple = bottomPanel[1].add_WebBrowser();
- var browserWithSyles = bottomPanel[2].add_WebBrowser();
-
- Action<string> processWikiText =
- (wikiText)=>{
- var htmlCode = WikiApi.parseText(wikiText);
- htmlViewer.set_Text(htmlCode);
- browserSimple.set_Text(htmlCode);
- browserWithSyles.set_Text(WikiApi.wrapOnHtmlPage(htmlCode));
- };
-
- MethodInvoker refresh =
- ()=>{
- topPanel[0].set_Text("Retrieving RawWiki Html code");
- rawWiki.backColor(Color.LightPink);
- O2Thread.mtaThread(
- ()=>{
- processWikiText(rawWiki.get_Text());
- rawWiki.backColor(Color.White);
- topPanel[0].set_Text(defaultTopPanelText);
- });
- };
-
- Action<KeyEventArgs> handlePressedKeys =
- (e)=>{
- if (e.KeyValue == 116 || // F5 (key 116) or
- (e.Modifiers == Keys.Control && e.KeyValue == 'R')) // Ctrl+R it
- {
- refresh();
- }
- };
-
- rawWiki.KeyUp+= (sender,e) => handlePressedKeys(e);
-
-
- //rawWiki.onEnter(processWikiText);
-
- rawWiki.add_ContextMenu().add_MenuItem("Show Html for Wiki Text", refresh);
-
- rawWiki.set_Text("===Raw WikiText===".line() +
- "this is simple text".line() +
- "* this is a bullet point");
- refresh();
- //panel_add_1x1(
- }
-
- public void addEditMenuItemsToTreeView(TreeView treeView)
- {
- var contextMenu = treeView.add_ContextMenu();
- contextMenu.add_MenuItem("delete selected page (you must be an admin)",
- ()=>{
- var pageToDelete = treeView.selected().get_Text();
- if (pageToDelete.valid())
- if (WikiApi.deletePage(pageToDelete))
- treeView.remove_Node(treeView.selected());