public void Stop(string name)
 {
     IsProcessing  = false;
     CanLoadFile   = true;
     IsExpanded    = true;
     CanStop       = false;
     CanPause      = false;
     IsKEnabled    = true;
     IsStepEnabled = true;
     BlocksBrowserViewViewModel.UpdateBrowserView(DisplayMode.All);
     AlgorithmSimulationViewViewModel.Stop();
     AlgorithmSimulationViewViewModel = null;
     BlocksBrowserViewViewModel.EnableQuantity();
 }
 public void Next(string name)
 {
     CanLoadFile   = false;
     IsExpanded    = false;
     CanStop       = true;
     CanPause      = false;
     IsKEnabled    = false;
     IsStepEnabled = true;
     if (AlgorithmSimulationViewViewModel == null)
     {
         AlgorithmSimulationViewViewModel = new AlgorithmSimulationViewModel(BlocksBrowserViewViewModel.DisplayedBlocks, BoardWidth, K, Step);
         BlocksBrowserViewViewModel.DisableQuantity();
     }
     AlgorithmSimulationViewViewModel.Next(Step);
 }
 public void Start(string name)
 {
     IsProcessing  = true;
     CanLoadFile   = false;
     IsExpanded    = false;
     CanStop       = true;
     CanPause      = true;
     IsKEnabled    = false;
     IsStepEnabled = false;
     BlocksBrowserViewViewModel.UpdateBrowserView(DisplayMode.Selected);
     if (AlgorithmSimulationViewViewModel == null)
     {
         AlgorithmSimulationViewViewModel = new AlgorithmSimulationViewModel(BlocksBrowserViewViewModel.DisplayedBlocks, BoardWidth, K, Step);
         BlocksBrowserViewViewModel.DisableQuantity();
     }
     AlgorithmSimulationViewViewModel.Start(Step);
 }