Esempio n. 1
0
        public MainForm()
        {
            this.ca = new CellularAutomataAlgorithm();
            this.mc = new MonteCarloAlgorithm();

            InitializeComponent();
            this.SetupUI();
            this.SetupBrushes();
            this.SetupGrid();
            this.SetupStateButtons();
        }
Esempio n. 2
0
        public MainForm()
        {
            this.ca  = new CellularAutomataAlgorithm();
            this.mc  = new MonteCarloAlgorithm();
            this.srx = new SRXAlgorithm();

            InitializeComponent();
            this.SetupUI();
            this.SetupBrushes();
            this.SetupGrid();
            this.SetupStateButtons();

            //this.grid = new Grid(100, 100, false);

            //this.mc = new MonteCarloAlgorithm {Grid = this.grid};
            //this.mc.AddSquareInclusion(10, 10, 10);
            //this.mc.AddCircleInclusion(80, 80, 10);
            //this.mc.Init(5);

            //this.ca = new CellularAutomataAlgorithm { Grid = this.grid };
            ////this.ca.AddSquareInclusion(10,10,10);
            ////this.ca.AddCircleInclusion(80, 80, 10);
            //this.ca.AddRandomGrains(5);
        }