public GrainService() { _colorService = new ColorService(); _bitmapService = new BitmapService(); _random = new Random(); _syncLock = new object(); }
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"; }