public static Holder GetInstance(int width, int height) { if (instance == null) { instance = new Holder(width, height); } return instance; }
public Form1() { InitializeComponent(); objects = Holder.GetInstance(Preview.Width, Preview.Height); //this.Clear(); ReadFile(); }