Try this:
namespace RedCupSkin
{
public class RedCupSkinManager
{
private RedCupSkinManager()
{
}
private static RedCupSkinManager _instance;
public static RedCupSkinManager Instance
{
private set { _instance = value; }
get
{
if(_instance == null) _instance = new RedCupSkinManager();
return _instance;
}
}
}
}
In the Form:
private RedCupSkinManager redcupSkinManager;
private void YourForm_Load(object sender, EventArgs e)
{
redcupSkinManager = RedCupSkinManager.Instance;
}
I assume your goal here is to make the 'RedCupSkinManager a "singleton," as in the simple example shown here; there are a number of ways to do that from relatively simple to complex. See Jon Skeet's comprehensive review here: [
^].