Simply put, I want to make a class with functions that I can run without the need to actually instantiate an instance of the class...
Let me explain with an example; given a class FORM1 & RENDER I want to be able to use the functions of class RENDER in class FORM1 without the need to create an instance of RENDER, something like the following (pseudo-code):
So the idea is, creating a class (RENDER) with functions (such as DRAW, CHANGES, UPDATE, etc..) that can be used without the need to create and hold an instance of RENDER....
Any ideas, hints, and help would be greatly appreciated, thanks
Let me explain with an example; given a class FORM1 & RENDER I want to be able to use the functions of class RENDER in class FORM1 without the need to create an instance of RENDER, something like the following (pseudo-code):
Code:
public class FORM1
{
public FORM1()
{
// See I am using RENDER without creating a RENDER render = new RENDER(), no need for a instance of RENDER
RENDER.DRAW();
RENDER.CHANGES();
RENDER.UPATE();
}
private void FORM1_Load(object sender, System.EventArgs e)
{
// See I am using RENDER without creating a RENDER render = new RENDER(), no need for a instance of RENDER
RENDER.DRAW();
RENDER.CHANGES();
RENDER.UPATE();
}
}
So the idea is, creating a class (RENDER) with functions (such as DRAW, CHANGES, UPDATE, etc..) that can be used without the need to create and hold an instance of RENDER....
Any ideas, hints, and help would be greatly appreciated, thanks