Exemplo n.º 1
0
 public GrainService()
 {
     _colorService  = new ColorService();
     _bitmapService = new BitmapService();
     _random        = new Random();
     _syncLock      = new object();
 }
Exemplo n.º 2
0
        public Form1()
        {
            _gainService        = new GrainService();
            _colorService       = new ColorService();
            _neumanService      = new VonNeumanService();
            _inclusionService   = new InclusionService();
            _propabilityService = new ProbabilityService();
            NotRemovableIds     = new List <int>();
            _bitmapService      = new BitmapService();
            InitializeComponent();
            InclusionType.Items.Add("Square");
            InclusionType.Items.Add("Circle");
            NeighberhoodType.Items.Add("VonNeuman");
            NeighberhoodType.Items.Add("Propability");
            MicrostructureType.Items.Add("DualPhase");
            MicrostructureType.Items.Add("Subculture");

            //Test
            SizeX.Text              = "200";
            SizeY.Text              = "200";
            Probability.Text        = "10";
            InclusionSize.Text      = "2";
            InclusionType.Text      = "Square";
            NumberOfInclusions.Text = "0";
        }