public CreateMozaicViewModel() { _mozaic = new Mozaic(); _mozaic.ProgressChanged += Mozaic_ProgressChanged; _algorithmThread = new Thread(new ThreadStart(AlgorithmThreadWork)); _algorithmThread.IsBackground = true; }
public void Init() { float size = 20; mozaic = new Mozaic(new Pallet[2, 2] { { new Pallet(new int[2, 2] { { 1, 2 }, { 3, 4 } }, size), new Pallet(new int[2, 2] { { 2, 3 }, { 4, 5 } }, size), }, { new Pallet(new int[1, 2] { { 5, 5 } }, size), new Pallet(new int[1, 2] { { 1, 2 } }, size), } }); }