Missing Code for CommonEditorPart.cs

Dec 5, 2012 at 1:38 PM
Edited Dec 5, 2012 at 7:39 PM

Hi!

That's a great project but the "CommonEditorPart.cs" is missing in the source code. So I decompiled the compiled solution to get back the source code! I used JetBrains dotPeek to decompile the DLL...here's the code:

// Type: SPSolution.PDFViewer.CommonEditorPart
// Assembly: SPSolution.PDFViewer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d82f1ed3a9515f82
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;

namespace SPSolution.PDFViewer
{
  public class CommonEditorPart : EditorPart
  {
    public override bool ApplyChanges()
    {
      return true;
    }

    protected override void RenderContents(HtmlTextWriter writer)
    {
      writer.Write(" © 2012 Gaurav Goyal");
      writer.Write(" Version 1.1.1");
    }

    public override void SyncChanges()
    {
    }
  }
}