diff --git a/Decompiler.csproj b/Decompiler.csproj new file mode 100644 index 000000000..2ee2d3d35 --- /dev/null +++ b/Decompiler.csproj @@ -0,0 +1,44 @@ + + + {EE3A3C1A-F9C3-4C75-853D-A9476E518C3A} + Debug + AnyCPU + WinExe + Decompiler + Decompiler + + + bin\Debug\ + True + Full + False + True + DEBUG;TRACE + + + bin\Release\ + False + None + True + False + TRACE + + + + + + + + + + + + + + + + + MainForm.cs + + + \ No newline at end of file diff --git a/Decompiler.sln b/Decompiler.sln new file mode 100644 index 000000000..9a43e3c78 --- /dev/null +++ b/Decompiler.sln @@ -0,0 +1,18 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +# SharpDevelop 3.0.0.2707 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Decompiler", "Decompiler.csproj", "{EE3A3C1A-F9C3-4C75-853D-A9476E518C3A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EE3A3C1A-F9C3-4C75-853D-A9476E518C3A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EE3A3C1A-F9C3-4C75-853D-A9476E518C3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EE3A3C1A-F9C3-4C75-853D-A9476E518C3A}.Release|Any CPU.Build.0 = Release|Any CPU + {EE3A3C1A-F9C3-4C75-853D-A9476E518C3A}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/build.bat b/build.bat new file mode 100644 index 000000000..28d82f655 --- /dev/null +++ b/build.bat @@ -0,0 +1,2 @@ +%windir%\microsoft.net\framework\v2.0.50727\msbuild Decompiler.sln +@IF %ERRORLEVEL% NEQ 0 PAUSE \ No newline at end of file diff --git a/src/AssemblyInfo.cs b/src/AssemblyInfo.cs new file mode 100644 index 000000000..ba6aea4d2 --- /dev/null +++ b/src/AssemblyInfo.cs @@ -0,0 +1,31 @@ +#region Using directives + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +#endregion + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Decompiler")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Decompiler")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// This sets the default COM visibility of types in the assembly to invisible. +// If you need to expose a type to COM, use [ComVisible(true)] on that type. +[assembly: ComVisible(false)] + +// The assembly version has following format : +// +// Major.Minor.Build.Revision +// +// You can specify all the values or you can use the default the Revision and +// Build Numbers by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.*")] diff --git a/src/MainForm.Designer.cs b/src/MainForm.Designer.cs new file mode 100644 index 000000000..3e1ba8640 --- /dev/null +++ b/src/MainForm.Designer.cs @@ -0,0 +1,62 @@ +// +// +// +// +namespace Decompiler +{ + partial class MainForm + { + /// + /// Designer variable used to keep track of non-visual components. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Disposes resources used by the form. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing) { + if (components != null) { + components.Dispose(); + } + } + base.Dispose(disposing); + } + + /// + /// This method is required for Windows Forms designer support. + /// Do not change the method contents inside the source code editor. The Forms designer might + /// not be able to load this method if it was changed manually. + /// + private void InitializeComponent() + { + this.sourceCode = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // sourceCode + // + this.sourceCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.sourceCode.Location = new System.Drawing.Point(12, 12); + this.sourceCode.Multiline = true; + this.sourceCode.Name = "sourceCode"; + this.sourceCode.Size = new System.Drawing.Size(266, 223); + this.sourceCode.TabIndex = 0; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(290, 247); + this.Controls.Add(this.sourceCode); + this.Name = "MainForm"; + this.Text = "Decompiler"; + this.ResumeLayout(false); + this.PerformLayout(); + } + private System.Windows.Forms.TextBox sourceCode; + } +} diff --git a/src/MainForm.cs b/src/MainForm.cs new file mode 100644 index 000000000..18ade0766 --- /dev/null +++ b/src/MainForm.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Windows.Forms; + +namespace Decompiler +{ + /// + /// Description of MainForm. + /// + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + + public string SourceCode { + get { + return sourceCode.Text; + } + set { + sourceCode.Text = value; + } + } + } +} diff --git a/src/MainForm.resx b/src/MainForm.resx new file mode 100644 index 000000000..5ea0895e3 --- /dev/null +++ b/src/MainForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/src/Program.cs b/src/Program.cs new file mode 100644 index 000000000..7dac20d8b --- /dev/null +++ b/src/Program.cs @@ -0,0 +1,32 @@ +// +// +// +// + +using System; +using System.Windows.Forms; + +namespace Decompiler +{ + /// + /// Class with program entry point. + /// + internal sealed class Program + { + /// + /// Program entry point. + /// + [STAThread] + private static void Main(string[] args) + { + string sourceCode = ""; + + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + MainForm mainForm = new MainForm(); + mainForm.SourceCode = sourceCode; + Application.Run(mainForm); + } + + } +}