Exemple #1
0
        public MainForm()
        {
            InitializeComponent();

            game = Game.GetInstance();
            game.PanelGame = gameField;
            game.LabScore = labScore;
            game.PanelPreview = panelPreview;

            gameField.Invalidate();
        }
Exemple #2
0
 public static Game GetInstance()
 {
     if(INSTANCE == null)
         INSTANCE = new Game();
     return INSTANCE;
 }