title: how to use interface in C#
body: <p>Using C# .NET 4.0, Visual Studio 2010.</p>
  
  <p>Well at the moment I'm looking into de-coupling of Classes and using interfaces.
  I've implemented a Solution from another post to test if I could get it working but unfortunately I have never used an interface ever.</p>
  
  <p>So here's the basics of what I have:</p>
  
  <p>Form1:</p>
  
  <pre><code>partial class Form1 : InterfacePareto
  {
      public string myTest
          {
              get { return herpTxt.Text; }
              set { herpTxt.Text = value; }
          }  
  } 
  </code></pre>
  
  <p>Interface:</p>
  
  <pre><code>interface InterfacePareto
  {
      string myTest { get; set; }
  }
  </code></pre>
  
  <p>MyWorkingOutClass:</p>
  
  <pre><code>Class MyWorkingOutClass
  {
      private readonly InterfacePareto pare;
  
      public MyWorkingOutClass(InterfacePareto pare)
      {
          this.pare = pare;
      }
  
      private void Testtime()
      {
          string firstName = pare.myTest;
          pare.myTest = firstName + " extra";
      }
  }
  </code></pre>
  
  <p>The purpose:</p>
  
  <p>The plan at the moment is to get the text from the forms textbox. Then pass it to the working class. The working class then does whatever calculations etc needed, then passes the result back to the forms textbox.</p>
  
  <p>My question is, is my code along the right tracks. If yes, then what am I missing/doing wrong? Or if anyone thinks this is not the right way of achieving what I need, do they have any suggestions?</p>
  
  <p>Many thanks!</p>