title: How to access public static class from a windows form
body: <p>I hope that my question is relevant to be answered because I'm a newbie.</p>
  
  <p>For example, I have two coding named with <code>Class1.cs</code> and <code>Form1.cs</code>. Basically, Class1.cs is the program where the process of image filtering is occured, meanwhile in <code>Form1</code> is the program where I allow it to load an image from a file. </p>
  
  <p>Is it possible for me to access <code>Class1</code> from <code>Form1</code> right after I click on the button to process it?</p>
  
  <blockquote>
    <p><strong>Class1.cs</strong></p>
  </blockquote>
  
  <pre><code>public class Class1
  {
      public static class Class1Program
      {
          // My program for image filtering is starting here
      }
  }
  </code></pre>
  
  <blockquote>
    <p><strong>Form1.cs</strong></p>
  </blockquote>
  
  <pre><code> public partial class Form1 : Form
   {
       public Form1() =&gt; InitializeComponent();
  
       private void LoadImageButton_Click(object sender, EventArgs e)
       {
          // My program here is to open up a file image right after I click on this button
       }
       private void ResultButton_Click(object sender, EventArgs e)
       {
          // Here is the part where I don't know how to access the program from "Class1.cs".
          // I'm expecting the image that I've load before will be able to filter right after I clicked on this button
       }
   }
  </code></pre>
  
  <p>I'm wondering if there is a need to add or edit some program on the "Program.cs".
  I'm hoping that my question can be answered. Thank you so much for your time.</p>