public static DrawEngine GetInstace() { if (Instance == null) { Instance = new DrawEngine(); } return(Instance); }
public void Init(PictureBox pictureBox) { mazeGenerator = MazeGenerator.GetInstance(); drawEninge = DrawEngine.GetInstace(); drawEninge.Init(pictureBox); }