You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
994 B

using Pores.Controllers;
using Pores.Interfaces;
using Pores.Models;
using Pores.Models.Localizations;
using Pores.Helpers;
using System.Windows.Input;
namespace Pores
{
public class MainWindowViewModel : PropertyChangedClass
{
public Material Material { get; set; } = new Material();
public IPoreLocalization Localization { get; set; }
public ModelGenerationController GenController { get; set; }
public int NumberOfPores { get; set; }
public ICommand GeneratePoresCommand { get; set; }
public MainWindowViewModel()
{
Init();
GeneratePoresCommand = new RelayCommand(StartGeneration, () => true);
}
public void Init()
{
Localization = new NormalLocalization(Material);
GenController = new ModelGenerationController(Localization);
}
public void StartGeneration()
{
GenController.GeneratePores();
}
}
}