public MainWindow() { InitializeComponent(); _controller = Controller.GetInstance(AssetsFolder, UseJack); BindController(); DataContext = _model; }
public static Controller GetInstance(string assetsFolder, bool useJack) { if (_instance == null) { _instance = new Controller(assetsFolder, useJack); } _instance.BaseFolder = assetsFolder; return _instance; }