Errors in C# Namespace, expected class, and end-of file expected
<p>I'm getting 4 errors with the following code, can you tell me how to fix this?</p>

<p>1- A namespace cannot directly contain members such as fields or methods
2- Expected class, delegate, enum, interface, or struct.
3- Type or namespace definition, or end-of-file expected</p>

<p>The code is:</p>

<pre><code>License Seal;
    public void Mainform() {}

    public MainForm() {}       
    public enum auth{}
}

 {{

        Seal = new License(); 
        Seal.ID = "";
        Seal.Catch = true;
        Seal.Protection = License.Guard.FullScan;
        Seal.Initialize(); 
 }

       public MainForm.cs(); 
 }}
        auth();
        InitializeComponent();{

 }
</code></pre>
