static void Main(string[] args) { ruleSet = new List<daRule>() ; V = new Variables(); ff = new Main(); ff.ShowDialog(); }
public Main() { theThread = null; wael(); V = new Variables(); InitializeComponent(); }
public Grid() { V = Program.V; // UPS =Convert.ToInt32( f1.textBox1.Text) ; Size = new Point(V.CellsX, V.CellsY); cells = new Cell[Size.X, Size.Y]; nextCellStates = new bool[Size.X, Size.Y]; for (int i = 0; i < Size.X; i++) { for (int j = 0; j < Size.Y; j++) { cells[i, j] = new Cell(new Point(i, j)); nextCellStates[i, j] = false; } } updateTimer = TimeSpan.Zero; }