public FavoritesForm(LifeForm ThatWindow)
 {
     this.ThatWindow = ThatWindow;
     this.graphics   = new GraphicalApp(ThatWindow, this);
     InitializeComponent();
     graphics.DrowGrid(myCanvas);
     //this.Height = myCanvas.Height;
     //this.Width = myCanvas.Width;
 }
Exemple #2
0
        public StandartMode(LifeForm ThatWindow)
        {
            CELLS_COUNT = settings.CellsCount;

            CELLS_COUNT = settings.CellsCount;
            terr        = new Terrain();
            terr.WIDTH1 = ThatWindow.Width;

            scan = new Scanner(terr, ThatWindow);
            terr.TurnFinished += scan.StartScan;
            terr.TurnFinished += NewTickDrow;
            terr.CELLS1        = CELLS_COUNT;
            terr.CreateRandom();

            favor                 = new FavoritesForm(ThatWindow);
            graphics              = new GraphicalApp(ThatWindow, favor);
            scan.PatternDetected += favor.Sc_PatternDetected;



            lifeThread = new Thread(terr.StartGame);
            lifeThread.Start();
        }